s = script
g = game.Workspace
Car = s.Parent.Parent.Car1
-------------------------
function onClicked()
Car.BodyVelocity.velocity = Vector3.new(0, 2, 0)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
✓ ANSWER ACCEPTED
how would i add Car2 ?
1 answer
✓ Accepted answer
s = script
g = game.Workspace
Car = s.Parent.Parent.Car1
Car2 = **LOCATECAR2
-------------------------
function onClicked()
Car.BodyVelocity.velocity = Vector3.new(0, 2, 0)
Car2.BodyVelocity.velocity = Vector3.new(0, 2, 0)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
didnt work