you can just put it in a localscript and it should work. However, keep in mind that localscripts only run if they are parented to the Player’s playerinstance or character, so you may have to change the path from script.parent to something like workspace.PressurePlate.
Use CollectionService. This services allows you to add “tags” to Instance, especially BaseParts, and you can get all the Instances with the associated “tag”.
you could use a function or modulescript to make it less redundant, the idea being that you can call a line of code multiples times without having to retype the whole thing.