Scripting Issue
Hello, I have recently made a working name tag script, and when I join the game it will say that I’m the Chairman and others will be called visitor. But I have a friend who should be called Vice Chairman. All I need for the game is to give him that tag and the rest should be fine, but does anyone know how I can add that to my script?
```lua
local rep = game:GetService("ReplicatedStorage")
local nametag = rep.NameTag
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local head = char.Head
local newtext = nametag:Clone()
local uppertext = newtext.UpperText
local lowertext = newtext.LowerText
local humanoid = char.Humanoid
humanoid.DisplayDistanceType = "None"
newtext.Parent = head
newtext.Adornee = head
uppertext.Text = player.Name
if player.Name == "delvuur" then
lowertext.Text = "Chairman"
end
end)
end)
I have tried doing this and adding it to under the other if statement:
if player.Name == "playername" then
lowertext.Text = "Vice Chairman"
end
But that didn’t work and it was glitching the script. Does anyone know how to do this properly?