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

My car isnt working... I have no idea what is wrong with my script.?

Asked by 5 years ago
Edited 5 years ago

I made this script and the car doesn't move. I looked at the motors and noting is happening. They just sit there, even when my script trys to change it.

local rm = script.Parent.FrontAxle.RightMotor
local lm = script.Parent.FrontAxle.LeftMotor
local seat = script.Parent.VehicleSeat
local maxspeed = 90



local function onChanged(property)
    if property == "Throttle" then
        lm.MotorMaxTorque = 20000000
        rm.MotorMaxTorque = 20000000
        lm.AngularVelocity = 200
        rm.AngularVelocity = 200
        seat.Torque = 500000
    end
end
seat.Changed:connect(onChanged)

0
Any errors? More details? HeyItzDanniee 252 — 5y
0
what is not working? is It the turning, the driving? we need a bit more details to know how to fix it. nachsor 36 — 5y

Answer this question