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 5 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
5 years ago

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

Code:

game.Players.PlayerAdded:Connect(function(plr)
    plr.CharacterAdded:Connect(function(char)
        if char.Name == "Divistern" then
            char.Head.Transparency = 1
        end
    end)
end)

Hope this helped.

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

Answer this question