sf = script.Parent game.Players.PlayerAdded:connect(function(player) local su = Instance.new("TextButton") su.Parent = sf local uid = player.UserId su.Name = player.Name su.Size = UDim2.new(1, 0, 0.04, 0) su.Text = player.Name..":"..uid su.Font = "SourceSansLight" su.FontSize = "Size28" end)
I went head and redone the code for you. I don't know if this is just for the player him/her self or if it updates to everyone and is this Server Script or LocalScript?
Here the code.
local PlayersScroll = {} sf = script.Parent game.Players.PlayerAdded:connect(function(player) if PlayersScroll[player.Name] == nil then local su = Instance.new("TextButton") su.Parent = sf local uid = player.UserId su.Name = player.Name su.Size = UDim2.new(1, 0, 0.04, 0) su.Text = player.Name..":"..uid su.Font = "SourceSansLight" su.FontSize = "Size28" PlayersScroll[player.Name] = su end end) game.Players.PlayerRemoving:connect(function(player) if PlayersScroll[player.Name] ~= nil then PlayersScroll[player.Name]:Destroy() table.remove(PlayersScroll, player.Name) end end)