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

A more efficient way of making a camera shake effect?

Asked by
Nikkulaos 229 Moderation Voter
6 years ago

I am looking for a more efficient way of making a camera shake effect.

When i use this one the camera kinda freezes in place for a sec and it gets annoying to use.

cam.CameraType = Enum.CameraType.Fixed
for i = 1,5 do
wait()
cam.CFrame = cam.CFrame + Vector3.new(0,.25,0)
wait()
cam.CFrame = cam.CFrame - Vector3.new(0,.25,0)
wait()
end
cam.CameraType = Enum.CameraType.Custom

I know the problem is because i changed the camera type, but whats a way i can do it without changing the camera type at all?

I also tried setroll too, but it needs scriptable camera which also freezes.

Thanks!

0
You could make the wait a wait 0.01 TheOnlySmarts 233 — 6y
0
The wait isnt really the problem, its just that the shake wont let you move your camera with your mouse while its shaking. I am trying to find a way around that :P Nikkulaos 229 — 6y

Answer this question