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

How To Fix A Shaky Camera?

Hi, I'm using DeviousDeviation's sidescroller camera script and its shaking when the model moves. I was wondering if anyone had any problems like this while using a similar script or camera manipulation at all? The script:

while true do
game:GetService("RunService").RenderStepped:wait()
cam.CoordinateFrame = CFrame.new(plane.View.Position + Vector3.new(0, 2, 40), plane.View.Position)
end

The game: http://www.roblox.com/BRAND-SPANKING-NEW-place?id=191860631

1 comment

0

The 'while true do end' loop is not necessary.

1 answer

✓ Accepted answer

RenderStepped can only be used in a localscript. assuming the camera is laggy. The wait() can only delay for 1/30 of a second, any less, and it's set back the 1/30.

while true do --KILL THIS UGLY BEAST
game:GetService('RunService').RenderStepped:connect(thefunction)--RenderStepped is an event so use this instead of making it wait()

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