@Diminical You got the part about the error correct, but he never tried to put anything into the character in the first place. Also, he wants this to run whenever a player joins the game, so that for loop will just screw things up.
Now, there are 2 problems with your script, biocommand. First is the problem that Diminical outlined: a spelling error. You can resolve this by simply replacing 'BackPack' with 'Backpack'.
The other problem is with your if statement. You check, and rightly so, if the player has its backpack yet. This is necessary because sometimes the backpack will not have loaded yet. If it has, then it will give the player the tool, like it should. However, what if they don't have it yet? Well, the script considers its job done and stops right there. The player will never get their tool. How do we fix this? We have to wait until the player gets their backpack. How do we do this? Well, there is a very simple method in roblox that does this for us, and was intended for this very purpose. Here is how to use it:
local backpack = p:WaitForChild("Backpack")
randTool.Parent = backpack
As you can see, we get the backpack, whether it is loaded or not, and then we set the tool's parent to it.
2 comments
Thanks, yes I think I get your explanation thanks a lot!
It´s not working