Advertisement
Honansik

Universal Motion Blur Script

Jan 26th, 2023
712
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local lv = Vector3.zero
  2.  
  3. game:GetService("RunService").RenderStepped:Connect(function()
  4.     local x,y,z = game.Workspace.CurrentCamera.CFrame:ToEulerAnglesXYZ()
  5.     x,y,z = math.deg(x),math.deg(y),math.deg(z)
  6.    
  7.     game.Lighting.Blur.Size = math.clamp((Vector3.new(x,y,z)-lv).Magnitude/2,2,10)
  8.     lv = Vector3.new(x,y,z)
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement