Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how would i add Car2 ?

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)

1 comment

0

didnt work

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.