Can a script in the workspace call out a tool from inside a player?
basically, i have a shop and when players buy an item from it, the item is put into a folder in the player's backpack named "BoughtTools." This is so a script can call out the weapons at any time it likes, and to keep the player from having their weapons in the lobby or just outside the game round in general. But, for some reason, i call out the items in this folder and it does nothing. Its does not give me an error or anything. This is the script below. Do i need to change the parent in any way? Could anyone please tell me whats wrong with it and correct the error? Help is GREATLY appreciated! :)
1 | local plr = game.Players.LocalPlayer |
2 | local ShopTools = plr.Backpack.BoughtTools:GetChildren() |
3 | local ClonedTools = ShopTools:Clone() |
4 | ClonedTools.parent = plr.Bacpack |
-TheBlazingMinatour