Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I run a smoother camera shake?

		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

1 comment

0

Crazyman32 made a smooth camera shaker module, https://www.roblox.com/library/1461025953/Camera-Shaker

2 answers

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)

1 comment

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.