#CollectionService:GetTagged() doesnt work

12 messages · Page 1 of 1 (latest)

uneven belfry
#

This code likely only connects a handler to the "Activated" event of the tool that is in ReplicatedStorage. You then clone this tool into the player's backpack. Event handlers do not carry over when the related instance is cloned

rare breach
#

Oh :|

#

Well is there any way i could change it?

uneven belfry
#

Change what?

rare breach
#

The script

uneven belfry
#

If your goal is to only use one script for a variable number of tools, you'll need to use a ModuleScript to implement the tool. You will need to listen for when the player (re)spawns, and process any current and future children of that player's backpack for a tool that can be linked to that ModuleScript. If it can, run the module on the tool

#

This process can let you implement several types of tools that should receive uninform behaviour

#

Use attributes to classify the tools

#

Or just go the lazy route and put the same Script in all those tools

rare breach
uneven belfry
rare breach