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.

2 comments

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.

0

Tried that before, still glitched. Oh well, thanks for trying to help me.