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

How To Fix A Shaky Camera?

Asked by
Hibobb 40
9 years ago

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

0
The 'while true do end' loop is not necessary. TheeDeathCaster 2368 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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()
Ad

Answer this question