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.

2 comments
Try doing player:WaitForChild('Backpack'). Sometimes the Backpack doesn’t load in fast enough which makes your script error.
what he said and in general you wanna wait for player and his descendants, such as character humanoid backpack etc...