Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local CollectionService = game:GetService("CollectionService")
- local ClickDetectors = CollectionService:GetTagged("Clicker") --This returns a table of the click detectors
- for _,v in pairs(ClickDetectors) do
- v.MouseClick:connect(function()
- print"Clicked"
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement