How to make a group nametag above your head?

I watched the tutorial from RoScripters and it worked but only for me…
So how can I do it for everyone?

1 Like

Can I see your script please?

2 Likes

oh sorry it wasnt from RoScripter but here and i need to make it for a group:

local rep = game:GetService("ReplicatedStorage") --You can change this to ServerStorage for more security.
local nametag = rep.NameTag 

--Functions
game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		--Varibles
		local head = char.Head
		local newtext = nametag:Clone() --Cloning the text.
		local uppertext = newtext.UpperText
		local lowertext = newtext.LowerText
		local humanoid = char.Humanoid
		
		humanoid.DisplayDistanceType = "None"
		
		--Main Text
		newtext.Parent = head
		newtext.Adornee = head
		uppertext.Text = player.Name --Changes the text to the player's name.
		
		--"If" Statements
		--You can add as many of these as you wish, just change it to the player's name.
		if player.Name == "Sheasu" then
			lowertext.Text = "Owner" --This is that the text will say.
			lowertext.TextColor3 = Color3.fromRGB(255, 51, 0) --This is what the color of the text will be.
		end
	end)
end)```
1 Like

This is a owner nametag.

2 Likes

Ohh! wait i send the wrong script

1 Like

Ahh, send the new one please.

2 Likes

Here:

--Variables
local rep = game:GetService("ReplicatedStorage") --You can change this to ServerStorage for more security.
local nametag = rep.NameTag 

--Functions
game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		--Varibles
		local head = char.Head
		local newtext = nametag:Clone() --Cloning the text.
		local uppertext = newtext.UpperText
		local lowertext = newtext.LowerText
		local humanoid = char.Humanoid
		local grouprank = player:GetRankInGroup(10878583)
		
		print(grouprank)
	
		
		humanoid.DisplayDistanceType = "None"
		
		--Main Text
		newtext.Parent = head
		newtext.Adornee = head
		uppertext.Text = player.Name --Changes the text to the player's name.
		
		--"If" Statements
		--You can add as many of these as you wish, just change it to the player's name.
		if grouprank == 2 then
			lowertext.Text = "Hotel Guest"
			lowertext.TextColor3 = Color3.fromRGB(255, 51, 0) --This is what the color of the text will be.
		end
	end)
end)

2 Likes

Well.
uhhh.

This only works if the user is a Hotel Guest.

2 Likes

Oh! well could you make it for everyone? i mean the whole group because idk how…

1 Like

Alright, I will link you some documentation, ok?

3 Likes

I think if you watched roscripter before this will be your best bet.

Roblox Scripting Tutorial: How to Script an Overhead Rank Gui - YouTube

2 Likes

This topic was automatically closed after 7 days. New replies are no longer allowed.