Can a script in the workspace call out a tool from inside a player? - (CONTINUED)
Thanks so much AlreadyPro for the script! So the script works completely fine, but one problem. The output gives me an error when the :Clone() function is called, as you can see on line 2 of the script below.
1 | local plr = game.Players.LocalPlayer |
2 | local ShopTools = plr.Backpack:WaitForChild( "BoughtTools" ):GetChildren():Clone() |
3 | table.foreach(ShopTools, function (i, v) |
4 | v.Parent = plr.Backpack |
it gives me this error:
Workspace.GameScript:67: attempt to call method 'Clone' (a nil value)" Would anyone know how to fix this error?