Hello Developers,
I was recently working on a Ban System, for which I connected remote events and other items. Now, the system works, however it needs a UI for it. I want to make the UI have a player list (which will all be textbuttons), whichw ill update as players leave and join.
Any Help is Appreciated,
OceanTubez
With all respect, but how would we be able to help you in this case?
I want to display a list of players currently in the server.
You could do something pretty simple like the following:
When a player joins:
Clone a TextButton, edit the Text property to the players name, parent it to wherever you want, I’d recommend a ScrollingFrame or something like that with a UIListLayout (so when people leave it doesn’t mess up the positioning).
When a player leaves:
Look for the TextButton with the name of the player (or text if you’re not changing the name property of the player) and destroy it. If you have a UIListLayout in a ScrollingFrame or something along those lines you won’t have to worry about updating the position of all the TextButtons to account for players leaving and joining.
If you need more help then this let me know.
1 Like
Thanks for the Help!
And yes, I already had the Scrolling frame and UiList Setup, but thanks for adding that in!
No problem, best of luck on the project! If you need anymore help don’t fret to ask. :^)