#PlayersAdded not working
1 messages · Page 1 of 1 (latest)
local Sticks = {
WoodenStick = game.ReplicatedStorage.Sticks.WoodStick
}
game.Players.PlayerAdded:Connect(function(plr)
local backpack = plr.Backpack
if not backpack then
warn('Backpack not found for: ', plr.Name)
end
local WoodenStickClone = game.ReplicatedStorage.Sticks.WoodStick:Clone()
WoodenStickClone.Name = 'WoodStick'
WoodenStickClone.Parent = backpack
end)```
this is my server code
and its not working
at all
** You are now Level 1! **
nothing
i used print to check if PlayerAdded function works and it worked
but my main function doesnt
pls help
i tried to found some help on forums but nothing helped
Backpack probably doesn’t exist
U gotta wait for it
WaitForChild
Lmk if solved @timber garden and mark as solved
Also why make table to not even reference it
Probably not the problem tho
I did when created a clone
Already tried
Oh yeah nvm I didn’t use it bc I was experimenting
sometimes a player can join before the playeradded can even detect they joined, i recommend adding a loop before it that loops through every player
he said playeradded function works so