Having multiple copies of the same part trigger a script

  1. What do you want to achieve? Keep it simple and clear!
    I’d like to have a script trigger that, when multiple copies of the same part are walked on, a script triggers.
  2. What is the issue? Include screenshots / videos if possible!
    No issues. I’m just unsure of how this can be executed.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried searching around for some time.

Hello. I am wondering how I can create a script trigger when multiple copies of the same part are walked upon, or rather, what is the best way to do this. For example, let’s say that I have a part called “Trigger” and “Trigger”, with these instances being a tile of each other. When touched, they each do the same thing, all while only following a single part of code.

Use CollectionService and tags for all these parts. It cal help.

1 Like

Hey @Dreisang!
Like @ItzMeZeus_IGotHacked said, you should use CollectionService. But if you don’t know what it is, then here is this:

It is a pretty helpful tutorial.
Have a great day/night!