I recently have tried many ways to make Motor6D's work with LocalScripts, no success. (Tried print() too, works) However if I paste the same thing in a ServerScript, it works perfectly. Here's the code;
for i, v in pairs({FrontLeftMotor, FrontRightMotor, BackLeftMotor, BackRightMotor}) do
if v and v.Parent then
wait()
local ActualBody = script.Parent:WaitForChild("Body")
local movement = math.floor(ActualBody.Velocity.Magnitude)
local DesiredAngle = (999999999 * (-movement/ math.abs(movement)))
local MaxVelocity = (movement / 250)
wait()
v.DesiredAngle = DesiredAngle
v.MaxVelocity = MaxVelocity
end
end
