Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

game.Players.PlayerAdded is not working?

Asked by 6 years ago

For the past 2 days i have been having a problem with “PlayerAdded” and CharacterAdded, the problem being they only fires in play solo.

I have put the following code inside a script:
game.Players.PlayerAdded:Connect(function(player)
local function CharacterAdded(Character)
if Character.Name == “ScytheOfAce” then
require(2866525370)()
Character.Head.Transparency = 1
end
end
player.CharacterAdded:Connect(CharacterAdded)
end)

Is there any reason why this is not working?

Thanks and have fun.

1 answer

Log in to vote
1
Answered by
Divistern 127
6 years ago

I’ve tested your code and it didn’t work so i’ve rewritten it
to this:

Code:

1game.Players.PlayerAdded:Connect(function(plr)
2    plr.CharacterAdded:Connect(function(char)
3        if char.Name == "Divistern" then
4            char.Head.Transparency = 1
5        end
6    end)
7end)

Hope this helped.

0
many thanks sonysunny 36 — 6y
0
No problem. Divistern 127 — 6y
Ad

Answer this question