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

How do I make a player has joined/left gui?

Asked by 5 years ago

I am confused on how to make a joined/left GUI. I am able to do it with the in-game chat but not being able to do it on a Gui. Some help, please?

1 answer

Log in to vote
0
Answered by
VitroxVox 884 Moderation Voter
5 years ago
Edited 5 years ago

Well either you look it up on youtube or it's like this i'll give you an example:

Join example:

game.Players.ChildAdded:Connect(function(plr)
    if plr:IsA("Player") then
    print(plr.Name.." joinned the game")
    end
end)

Leave example:

game.Players.ChildRemoved:Connect(function(plr)
    if plr:IsA("Player") then
    print(plr.Name.." left the game")
    end
end)

OR

game.Players.PlayerAdded:Connect(function(w)
    print(w.." joinned the game")
end)

game.Players.PlayerRemoving:Connect(function(w)
    print(w.." left the game")
end)
0
Need to work with remote events/functions if youre wanting it to show in a GUI ForeverBrown 356 — 5y
0
Nah not really. VitroxVox 884 — 5y
0
Why would you ever use ChildAdded/ChildRemoved... DeceptiveCaster 3761 — 5y
0
Why not VitroxVox 884 — 5y
Ad

Answer this question