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

this isn't working for some reason??

Asked by 8 years ago

I attempted to make a script with the BodyGyro and BodyVelocity with a script ?~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~ script.Parent.BodyGyro.cframe = CFrame.fromEulerAnglesXYZ(0,3.14,0) value1 = 0 while true do wait() if script.Parent.Throttle== 1 then if value1 < 41 then value1 = value1+1 end script.Parent.BodyVelocity.velocity = script.Parent.CFrame.lookVectorvalue1 end if script.Parent.Throttle == 0 then value1 = 0 script.Parent.BodyVelocity.velocity = script.Parent.CFrame.lookVectorvalue1 end if script.Parent.Throttle== -1 then if value1<31 then value1 = value1+1 end script.Parent.BodyVelocity.velocity = script.Parent.CFrame.lookVector*-value1 end if script.Parent.Steer == 1 then script.Parent.BodyGyro.cframe = script.Parent.BodyGyro.cframe * CFrame.fromEulerAnglesXYZ(0,-.1,0) end if script.Parent.Steer == -1 then script.Parent.BodyGyro.cframe = script.Parent.BodyGyro.cframe * CFrame.fromEulerAnglesXYZ(0,.1,0) end end

Answer this question