Hi I have a script that basically just clones a tool and puts it in the players backpack. But I keep getting the error:
"Backpack is not a valid member of player"
I am almost certain I am referencing the right thing and this is very very confusing cause I have done very similar stuff before and it has worked.
Here is my code. SERVER SCRIPT
game:GetService("Players").PlayerAdded:connect(function(player) if player.Name == "iladoga" or player.Name == "FrostyMan88" then local cloene = game:GetService("ServerStorage")["Founders Machete"]:Clone() cloene.Parent = player.Backpack end end)
Again it just outputs that error. Thank you for taking your time looking at this.
game:GetService("Players").PlayerAdded:connect(function(player) if player.Name == "iladoga" or player.Name == "FrostyMan88" then player:WaitForChild("Backpack") local cloene = game:GetService("ServerStorage")["Founders Machete"]:Clone() cloene.Parent = player.Backpack end end)