Is there any way to make .Touched event more efficient?

Hello. I am making a two player puzzle game. And when i was making the buttons scripts, it seems that .Touched event is very messy. Its just don’t detects the player, or detects. Is there any way to make it more efficient? Here is the example:

External Media

(i dont know how to make it embed lol)

Any help is appreciated :slight_smile:

Even if you’re not showing the code, this is because of your code. Use :GetTouchingParts() when .Touched and .TouchEnded, it will return you a table with the parts that are colliding.

1 Like