Hello, i’m a small roblox developer that is still learning how to script
I have an unboxing system that works fine until you claim the item (the item is a tool)
When the player opens the crate i randomly pick a tool from a Tools folder inside ReplicatedStorage. When the tool is chosen i clone it and parent it to the players Backpack, BUT the tool scripts completely break. This seems to happen every time i try to clone a tool and try to parent it to the players Backpack. I tried disabling the scripts and enabling them when the tool gets parented to the players Backpack but it doesn’t work.
It’d be nice if someone could help me with this problem (Please if you can help give a simple answer and not something complicated.)
The tools are the same, so the scripts must be the same too. The scripts don’t know what tool is being used, due to them being cloned. Make each script unique to their tools.
Yeah my bad i got it to clone but the tool is still broken after, when the tool is inside StarterPack it works fine. Only breaks when i try to parent it to the players Backpack.
the long line that was cut off:
if game.Players:FindFirstChild(HUM.Parent.Name) and FRIENDLYFIRE.Value == false and TOUCHED.Parent:FindFirstChildOfClass(“ForceField”) == nil then