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

How to use Player.Team as a text?

So, I dont know how, but this doesnt work

for a,b in pairs(game:GetService("Teams"):GetChildren()) do
if b:IsA("Team") then
	print(b)
	 if b.TeamColor.Color == v.TeamColor.Color then
		print(b)
		GUI_Text.Text = b.Name
	end
end
end

So Im asking instead of going through trial and error how can you use Player.Team as a text, when you do/ V is player

GUI_Text.Text = v.Team

I get this error when I attempt:

20:58:28.259 - Players.willdad31gothack.PlayerGui.LocalScript:452: bad argument #3 to 'Text' (string expected, got Object)

1 answer

Imma answer my own question..

Just do:

GUI_Text.Text = v.Team.Name

This discussion is preserved as it was. New answers, comments, and votes are closed.