Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make it so that when a part hits a wall it moves the opposite direction?

Asked by 7 years ago

So I want a part to move and when it collides or hits another object I want it to move the opposite direction, kinda like pong. The problem is I want the the part to be uncollidable because I want the part to do damage to the player without pushing them around. I know how to do the damage script, though.

0
Multiply velocity by -1 cabbler 1942 — 7y
0
http://devforum.roblox.com/t/how-to-think-about-vectors/11866 take a look at this. It's an extremely in-depth tutorial on the use of vectors. MBacon15 97 — 7y

Answer this question