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

Why doesn't this script work ingame? wepoawpdawpojfdpowekdfpoeawkfpkaop[fkpeow[3

Asked by 6 years ago

This is the script:

local plr = game.Players.LocalPlayer

game.Players.ChildAdded:connect(function(p)
    repeat
        wait()
    until
        p.Character 

    print (#game.Players:GetChildren())
    plr.PlayerGui.ScreenGui.TextLabel.Text = #game.Players:GetPlayers()
end)

Been trying to make it work ingame for an hour PLEASE HELP MEEE!!

0
sorry about the letters it just kept on telling me to make it "more specific" when I mean WHAT ELSE CAN I PUT that's literally what i'm asking for joshmatt2244 28 — 6y

1 answer

Log in to vote
1
Answered by 6 years ago

Well, ChildAdded is not something suggestive for doing this. Try using PlayerAdded instead.

Ad

Answer this question