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

Could I get some help with my camera?

Asked by 10 years ago

So I'm trying to have the camera in a fixed position, but still follow the character. In a localscript I have: (all of the variables are defined, that's not my problem)

function moveCam()
    cam.CameraType=Enum.CameraType.Scriptable
    cam.CoordinateFrame = CFrame.new(char.Torso.Position + Vector3.new(0,5,30))
end
game["Run Service"].RenderStepped:connect(moveCam)

I have characters that move via MoveTo, and when the character moves (in online mode) the camera gets all bumpy and jerky (as a note, if I use something other than MoveTo to move the character it's hardly bumpy at all). When I hit the Play + Start Player button in Studio, it's nice and smooth, but, like I already said, is bumpy and jerky online. Why? Also, what can I do to have smooth camera movement?

Thanks, --MightyWanderer

Answer this question