Heya so I’d like to have certain users have certain nametags such as “owner” or other names.
How would I do that with this code? I really cant figure out how.
main = 8083234 -- Your GroupID Here!
}
script.Parent.Parent = game:GetService("ServerScriptService")
local sr = script:GetAttribute("disabled")
local players = game:GetService('Players')
local Gui = script.GroupRank
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
char.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
local Clone1 = Gui:Clone()
Clone1.Namey.Text = player.Name
if script:GetAttribute("disabled") then
Clone1.Rank.Text = "READ THE README AND ENABLE HTTPSERVICE"
else
Clone1.Rank.Text = player:GetRoleInGroup(groups.main)
end
delay(.1,function()
Clone1.Parent = char:WaitForChild("Head")
end)
end)
end)```
local Clone1 = Gui:Clone()
Clone1.Namey.Text = player.Name
if script:GetAttribute("disabled") then
Clone1.Rank.Text = "READ THE README AND ENABLE HTTPSERVICE"
else
Clone1.Rank.Text = player:GetRoleInGroup(groups.main)
end
delay(.1,function()
Clone1.Parent = char:WaitForChild("Head")
end)
end)
end)
if player.name == “Vephinox” then
Namey.Text == player.Name
Rank.Text == “Lead Developer”
end
local Clone1 = Gui:Clone()
Clone1.Namey.Text = player.Name
if script:GetAttribute("disabled") then
Clone1.Rank.Text = "READ THE README AND ENABLE HTTPSERVICE"
elseif overrideGroupRolePlayers[player.UserId] then
Clone1.Rank.Text = overrideGroupRolePlayers[player.UserId]
else
local GroupRole = player:GetRoleInGroup(groups.main)
Clone1.Rank.Text = GroupRole
end
delay(.1,function()
Clone1.Parent = char:WaitForChild("Head")
end)
end)