Backwards doesnt work in bike

i have made a script for my bike it does work but when you press"S" it doesnt go back but instead goes forward. heres my script:

while true do
wait()
if script.Parent.Throttle == 0 then
script.Parent.Move.velocity = Vector3.new(0,0,0)
elseif script.Parent.Throttle == 1 then
script.Parent.Move.velocity = script.Parent.CFrame.lookVector * 30
elseif script.Parent.Throttle == -1 then
script.Parent.Move.velocity = script.Parent.CFrame.lookVector * 30
end
if script.Parent.Steer == 0 then
script.Parent.Turn.angularvelocity =  Vector3.new(0,0,0)
elseif script.Parent.Steer == 1 then
script.Parent.Turn.angularvelocity = Vector3.new(0,-4,0)
elseif script.Parent.Steer == -1 then
script.Parent.Turn.angularvelocity = Vector3.new(0,4,0)
end 
end 

this is in the seat of the bike


Try putting: scirpt.Parent.CFrame.lookVector * -30 in the Throttle == -1 part.

1 Like

Thank you! it finally worked i’ve been trying to solve this

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.