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

How do you make a car go the opposite direction when it hits a certain part?

Like how do you make a car go the other way when the car touches a part?

1 comment

0

How are you making this car move in the first place? Line force? Tween service?

1 answer

✓ Accepted answer

Well if you wanted it to detect if there was a car, you would have to use the .touched event.

part.Touched:Connect(function(hit))
if hit.Parent.Name == "Car" then --here you would check to see if its a car, you can change this, as long as the computer can detect its a car
--make it go the opposite direction; im not sure how your making it move, you'll have to figure that part out
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.