Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Textlabel that shows what team the player is on?

****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.

2 comments

0

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

0

Hello, can you specify what you mean by "textlabel that says what team the player is on"?

2 answers

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

1 comment

0

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.