Gui showing players

In my game, when you join you get assigned to a random team (Blue Team/ Red Team). After you get assigned, i wanted to add a gui that shows who is on which side according to the team your in.


Capture25

I dont know how to make the players appear the text boxs when they get a team assigned. Could anyone help me please, i would appreciate it. Thanks.

2 Likes

are you using the teams object or a different cacher?

I recommend adding a ScrollingFrame inside your Frame. Inside the ScrollingFrame, add a UiListLayout. Set the UiListLayout padding to something like 0.005, 0. Delete all the TextLabels inside the Frame except one. Move that one TextLabel to ReplicatedStorage. You should then add a script into the ScrollingFrame, which uses the “PlayerAdded()” event. Clone the TextLabel and parent the new one to the ScrollingFrame by using script.Parent. Then change the cloned TextLabel’s text to the player’s.

This doesn’t completely answer your question as you have teams in your game, but it’s a starting place. I could be wrong about some of the stuff I said, as I am not a scripter.

i dont understand, what that is

How does your teams system work?

it only assigns a team to a player for now