I am trying to script a leaderboard type thing that shows a list of players in the game. Not the regular roblox one. Its in a frame that list people in the server. For example: (names of people in the game) TrollD3, BSInc., Swagg, DeezNuts, guest2334, idgaf532, Gottem321, would all be in a column. The goal is to get the script to put the names of everyone in texboxes. So when a new player is added, a new textbox appears, and when they leave, it disappears.
This is the script I have so far: EDITED!! I want the name to be posted inside the txtbutton and to remove that textbutton when someone leaves. Its not working. This is the remade script:
--OnEnter:
lol = 5
game.Players.PlayerAdded:connect(function(p)--Here
script.Parent.Text = "p.Name"
script.Parent.Parent.Position = script.Parent.Position + UDim2.new(0,0,lol*1.6,0)
end)
-- OnLeave:
game.Players.ChildRemoved:connect(function(p)-- Here
script.Parent.Text = "p.Name"
script.Parent.Parent.Position = script.Parent.Position + UDim2.new(0,0,lol/1.6,0)
end)
