Universal Script πŸ“Œ
107 Views
717 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

Updates

  1. Script edited: Create script

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
Universal Script πŸ“Œ
41.9k
1.4M
Bumped 2 hours ago
Script hub
25.7k
163.4k
Bumped 2 hours ago
Universal Script πŸ“Œ
179
31
2 hours ago
High QualityΒ Offering
Universal Script πŸ“Œ
191
2.9k
Bumped 2 hours ago
Key System
Universal Script πŸ“Œ
10.4k
422
Bumped 4 hours ago
High QualityΒ Offering
Universal Script πŸ“Œ
8.5k
33.3k
Bumped 4 hours ago
Key System