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

I need help with fixing the gears System in my Car chassis,can you help me ?

Asked by 6 years ago
Edited 6 years ago
seat=script.Parent

local function onChange(property)
        if property == "Throttle" then
        leftdrive.AngularVelocity=maxspeed   * seat.Throttle * gears
        rightdrive.AngularVelocity=-maxspeed  * seat.Throttle * gears
    end
  end


while wait (0.1) do
    local speed = math.floor(seat.Velocity.Magnitude)

local gears 

seat.Changed:connect(function()
if Speed < 5 then 
gears=0.5 
if Speed > 5 then 
gears=1 

This gives me an error,and the Problem is the gear dont updates If you keep press W,S and the throttle is Keep 1 or -1

0
Is that the whole script? PolyyDev 214 — 6y
0
Its the script which matters I guess,else there are only Variables and other things which dont deoend ob this goldi111 -5 — 6y

Answer this question