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 make it so that if a part touches two humanoids/parts, then it gets destroyed?

I'm trying to make a bullet destroy itself after it touches two things, thank you if you answered!

1 answer

✓ Accepted answer

Make a touched function in the bullet and make a variable that is equal to 0 before it. In the touches function, make the variable go up by one and then check if it is equal to two. If it is then destroy it. I also recommend using a debounce because it may add more than once without one.

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