Why isnt my speed variable updating ??
seat:GetPropertyChangedSignal("Throttle"):Connect(function()
if seat.Throttle > 0 and speed.Value < properties.MaxForward.Value then
repeat
speed.Value += 0.5
task.wait(.05)
until seat.Throttle <= 0 or speed.Value >= properties.MaxForward.Value
elseif seat.Throttle < 0 and speed.Value > -properties.MaxBackwards.Value then
repeat
print(speed.Value)
speed.Value = speed.Value - .5
print(speed.Value)
task.wait(.02)
until seat.Throttle >= 0 or speed.Value <= -properties.MaxBackwards.Value
elseif seat.Throttle == 0 then
if speed.Value > 0 then
repeat
speed.Value -= 0.5
task.wait(.05)
until seat.Throttle > 0 or seat.Throttle < 0 or speed.Value == 0
elseif speed.Value < 0 then
repeat
speed.Value += 0.5
task.wait(.05)
until seat.Throttle > 0 or seat.Throttle < 0 or speed.Value == 0
end
end
end)
It prints 15 15 even when throttle is -1, i checked all the variables, its printing 15, 15 in the output, why???