****Want to know how to script TextLabel that says what team the player is on?
~~~~~~~~~~~~~~~~
I need to know how it is if someone can help I appreciate it.
****Want to know how to script TextLabel that says what team the player is on?
~~~~~~~~~~~~~~~~
I need to know how it is if someone can help I appreciate it.
Make sure the script's parent is the text label and is a local script
Label = script.Parent --Variable
Label.Text = game.Players.LocalPlayer.Team.Name
You see, localscripts dont work when they're not a descendant of a player-relateed object.
I put it inside the TextLabel you can change it
local player = game.Players.LocalPlayer
local textlabel = script.Parent
textlabel.Text = player.Team.Name
if it works tell me lol
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Get into the details. What have you done. Where do you think your going wrong. Did you use Teamservice? Please try to include more details
Hello, can you specify what you mean by "textlabel that says what team the player is on"?