Animated Overhead GUI

local label = script.Parent
local Player = game:GetService("Players")
local Teams = game:GetService("Teams")

local function Typewrite(String)

	for Count = 1, #String do

		label.Text = string.sub(String, 1, Count)

		task.wait(0.1)

	end

end
while true do
	for _, player in pairs(Player:GetPlayers()) do
		if player.Name == "robloxjw02" then
			Typewrite("Development Team")
			wait(3)
		else
			if player.Team == Teams["Army Special Operations Command"] then
				Typewrite("Army Special Operations Command")
				wait(3)
			elseif player.Team == Teams["Basic Training"] then
				Typewrite("Basic Training")
				wait(3)
			elseif player.Team == Teams["Forces Command"] then
				Typewrite("Forces Command")
				wait(3)
			elseif player.Team == Teams["Training and Doctrine Command"] then
				Typewrite("TRADOC")
				wait(3)
			elseif player.Team == Teams["Headquarters"] then
				Typewrite("Headquarters")
				wait(3)
			elseif player.Team == Teams["Jailed"] then
				Typewrite("Jailed")
				wait(3)
			elseif player.Team == Teams["Military Police"] then
				Typewrite("Military Police")
				wait(3)
			elseif player.Team == Teams["United States Army"] then
				Typewrite("United States Army")
				wait(3)
			else
				Typewrite("Visitors")
				wait(3)
			end
		end
	end
end

Why I see other player text too and other player see my text too, I want that they see only my text on my head and only their text on their head, same to me, I only want I see my text on my head, and their text on the head, not to combine everytime player comes, I want in my overhead only my Typewrite text and their overhead only their Typerwrite text according to their team, not to combine everytime new player enter.

2 Likes

I’m really confused about what you want to do.

Do you want to make it so that only you can see your label?

Just do the code for the text inside of the overhead gui. I don’t understand what’s going on anyway, so I just hope this solves it.

Do this on a local script
simple as it is.

No, I want player see this animated text on their head and on my head is our own team, because now, when I’m Military Police, and they are Special Forces, they see on their head Military Police and Special Forces and I see mine Military Police and Special Forces too, but what I want is , they see other players overhead text with their respective team, so I give one example I’m Military Police and one person is Special Force, I want to see his overhead only Special Force and mine Military Police, and same to this person, i want this person to see mine only Military Police and he see his overhead only Special Force, because right now the error is, Our overhead is combined, so the text animated Military Police and Special Force to every player and not by our own team without combined.

1 Like

i made something similar. update the text using renderstepped from run service, and make the text auto-translate to your team.