local GroupIDs = {
{409002, "EastRome"},
}
local function CheckGroup(Player)
local IsTrue = nil
for _,v in pairs(GroupIDs) do
if Player:IsInGroup(v[1]) then
IsTrue = v
end
end
return IsTrue
end
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
local newName = Instance.new("Model", Character)
local Check = CheckGroup(Player)
if Player.Name == "PompeiusClaudiusNero" then newName.Name = "[EastRome][IVLIA][GOVERNOR]PompeiusClaudiusNero" end
if Check ~= nil then
newName.Name = "[" .. Check[2] .. "][" .. Player:GetRoleInGroup(Check[1]) .. "] " .. Character.Name
else newName.Name = "[Outsider] " .. Character.Name
end
local cl = Character:WaitForChild("Head"):Clone()
cl.Parent = newName
cl:WaitForChild("face"):Destroy()
local hum = Instance.new("Humanoid", newName)
hum.Name = "NameTag"
hum.MaxHealth = 0
hum.Health = 0
local weld = Instance.new("Weld", cl)
we########## #l## weld.Part1 = Character:WaitForChild("Head")
Character:WaitForChild("Head").Transparency = 1
########
# ############# = Character:WaitForChild("Head").BrickColor
end)
end)
I want to disable this script for the local player while pressing a certain key your name is invisible and when you press it again your name becomes visible. |