I'm using Motor.C1 throughout my script and whenever a CFrame is running on the C1, my frame rate drops by about 30-40 fps. It's also happening for other players. Is there a way to reduce the lag here?

Thanks.

for i=0,script.Parent.Parent.Settings.FlapsOffset.Value,0.01 do
	plane.Flap01.A.Motor.C1 = plane.Flap01.A.Motor.C1 * CFrame.new(0.01,0,0) 		
	plane.Flap03.A.Motor.C1 = plane.Flap03.A.Motor.C1 * CFrame.new(0.01,0,0)
	plane.Flap05.A.Motor.C1 = plane.Flap05.A.Motor.C1 * CFrame.new(-0.01,0,0)
	plane.Flap07.A.Motor.C1 = plane.Flap07.A.Motor.C1 * CFrame.new(-0.01,0,0)
	wait(0.01)
end

1 comment

0

You are updating the motor C1s quite fast, and the engine is struggling to simulate the changes just as fast. That's probably it.