Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I run a smoother camera shake?

Asked by
UPumpkin -34
5 years ago
        Camera.CoordinateFrame = Camera.CoordinateFrame * CFrame.Angles(math.random(-10, 10)/5000, math.random(-10, 10)/5000, math.random(-10, 10)/5000)

Thats my current script

heres what it looks like

https://gyazo.com/da46328a744ce3a8a8a7e079557368b8

how would I make it more smooth like this

https://gyazo.com/3262013c8449ddcdffcb1ebdbc94c622

0
Crazyman32 made a smooth camera shaker module, https://www.roblox.com/library/1461025953/Camera-Shaker herrtt 387 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

Is this perhaps to your liking?

local Camera = workspace.CurrentCamera

game:GetService("RunService").RenderStepped:Connect(function()
    Camera.CFrame = Camera.CFrame * CFrame.Angles(Random.new():NextInteger(-10, 10) / 1750, Random.new():NextInteger(-10, 10) / 1750, Random.new():NextInteger(-10, 10) / 1750)
end)
0
No sorry. I'm trying to get it so it doesn't move all over the place and so its always generally in the same spot. I think im using the wrong code UPumpkin -34 — 5y
Ad
Log in to vote
0
Answered by
UPumpkin -34
5 years ago

Someone pls help. Im trying to get it so its always like in the same spot and so that it doesnt shake off to another place. like idk how to explain it

Answer this question