Hello, I want to make a script that lists the usernames of people who join my game. How would I do this?
couldn’t you just use
game.Players.PlayerAdded?
and then add a textlabel inside a frame and make each textlabel lower than the last one?
local playerList = {}
game.Players.PlayerAdded:Connect(function(player)
if not table.find(playerList,player.Name) then
playerList[player.Name] = true
local template = game.ServerStorage.Template:Clone()
template.Parent = -- whatever
template.Text.Name = player.Name
end
end)
Just use a UI Grid Layout and then have a template for the frames your going to place inside of the Grid Layout and then every time a player is added update the UI for every single player
2 Likes
You put this in the wrong section. You were supposed to put this in #help-and-feedback:scripting-support.
Yeah it shouldn’t be in cool creations.
I accidentally put it in cool creations, sorry