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

How to make a camera follow on a car without controlling the camera but without lagging?

Asked by 4 years ago

I wanna know how to make the camera part not lag when you drive so it won't look like the car is having a seizure. I'm using an Inspare car by the way I've made a script for it, but it lags the camera and the framerate is like, 30fps.

while wait() do
    workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
    workspace.CurrentCamera.CFrame = workspace.F40.Body.Camera.CFrame
end

F40 is the car, Body is the body of the car, and the camera is a part that's behind the car that follows the car.

If there's a way to fix this problem, please show me how to. Thank you.

0
I don't know what to do now. I think it's actually because it's doing that like 1000 times a milisecond so it lags your game. Try making your wait() slower ot something like that. User#32819 0 — 4y
0
Tried that before, still glitched. Oh well, thanks for trying to help me. ImSky_RBLX 2 — 4y

Answer this question