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

I want to make a team only overhead gui?

I want a script that will show the overhead name of the players in the same team. Other teams wont be able to see the overhead names of the opposite teams. Please do let me know.

2 comments

0

ScriptingHelpers is not a request site. If you want help modifying a code, you can ask that, but not asking someone to write the whole code for you

0

ScriptingHelpers is not a request site. If you want help modifying a code, you can ask that, but not asking someone to write the whole code for you

1 answer

ScriptingHelpers is not a request site. Remember that next time. This time I will help you!

First make a part, then add a billboard gui to it. Add a text label to that. Customise it to be on top of player head. Then duplicate the billboard gui and put it in ServerStorage. Rename this to "Overhead" or anything else. Rename Textlabel to "TextL" or anything. Delete the part. Then add this script in ServerScriptService

local overhead = game.ServerStorage.Overhead.TextL -- Gets the billboard gui
local player = game:GetService("Players") -- Gets player service
local teamColor = BrickColor.new("Orange") -- Storing color Orange in teamColor

if player then -- If there is a player then
	if player.TeamColor == teamColor then -- if their TeamColor is equal to Orange then
		overhead.TextColor3 = BrickColor.new("Orange") -- Text's background color to Orange
		overhead.Text = player.Name -- Display player name
	else
		overhead.Text = player.Name -- display player name 
		overhead.TextColor3 = BrickColor.new("White") -- color to white
	end
end

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