Universal Script 📌
87 Views
675 Executions

motion blur

Universal Script 📌
Jams
JamsPublished 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

good for recording and editing

View Raw
local camera = workspace.CurrentCamera
local blurAmount = 15 --Select your amount--
local blurAmplifier = 5 --If you know yk--
local lastVector = camera.CFrame.LookVector

local motionBlur = Instance.new("BlurEffect", camera)

local runService = game:GetService("RunService")

workspace.Changed:Connect(function(property)
 if property == "CurrentCamera" then
  print("Changed")
  local camera = workspace.CurrentCamera
  if motionBlur and motionBlur.Parent then
   motionBlur.Parent = camera
  else
   motionBlur = Instance.new("BlurEffect", camera)
  end
 end
end)

runService.Heartbeat:Connect(function()
 if not motionBlur or motionBlur.Parent == nil then
  motionBlur = Instance.new("BlurEffect", camera)
 end
 
 local magnitude = (camera.CFrame.LookVector - lastVector).magnitude
 motionBlur.Size = math.abs(magnitude)*blurAmount*blurAmplifier/2
 lastVector = camera.CFrame.LookVector
end)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
6.9k
53.8k
Bumped 1 hour ago
Universal Script 📌
80
8
Approved 1 hour ago
Script hub
13.2k
62.1k
Bumped 2 hours ago
Script hub
2.5k
7.4k
Bumped 3 hours ago
Key System
Universal Script 📌
1.4k
4.9k
Bumped 3 hours ago