A simple PlayerAdded script won't fire in a LocalScript or a script
Code:
game.Players.PlayerAdded:Connect(function(Plr)
Plr.CharacterAdded:Connect(function(Char)
print("test")
end)
end)
A simple PlayerAdded script won't fire in a LocalScript or a script
Code:
game.Players.PlayerAdded:Connect(function(Plr)
Plr.CharacterAdded:Connect(function(Char)
print("test")
end)
end)
If you're trying to wait for a character you can do:
game.Players.PlayerAdded:connect(function(player)
repeat wait() until player.Character
print("test")
end)
The method he used to wait for a Player's character was proper.
Also, use "player.CharacterAdded:Wait()"
PlayerAdded most likely will not fire for the LocalPlayer in testing, but will for everyone else.
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
It will fire. Are you sure the script is running?
The script runs, if you put a print before PlayerAdded then it will print that, but not putting one after PlayerAdded
Uhm... The script looks perfectly fine. It will fire "test" once the Player's character has loaded. Shouldn't be any reason for it not to fire/print.