Ticket Scanner support

So I’m making a ticket scanner system and people will be able to duplicate multiple scanners but at the moment whenever they duplicate a scanner it also duplicates the Handler that goes with it, what is the best way to make it so only 1 handler controls every scanner, also each model has teleport positions and cameras so when a player scans a ticket and it activates the scanner it needs to work per scanner

You can simply just rescript the handler outside of a scanner object which handles all the scanners in the game.

I was suggested CollectionService but I dont know how to use that

I think someone suggested you to adding a tag to every scanner object in the game and get these with CollectionService:GetTagged(). Lets say you added “Scanner” tag to 3 objects. If you run this command: game:GetService(“CollectionService”):GetTagged(“Scanner”) it will return a table of the objects that you added the tag.

For more information about this: CollectionService | Documentation - Roblox Creator Hub

i mean i watched a video but i still dont know how to modify my script im just so stuck on this