So I am actually not much of a scripter and I tried making multiple name tags for this script, and it doesn’t work. Can someone help me with this script, it’s a fairly easy script except I am not a scripter…
local rep = game:GetService(“ReplicatedStorage”) --You can change this to ServerStorage for more security.
local nametag = rep.NameTagOwner
–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 == "DISGUlSES" then
lowertext.Text = "Owner" --This is that the text will say.
lowertext.TextColor3 = Color3.fromRGB(0, 145, 255) --This is what the color of the text will be.
if player.Name == "imnewand7" then
lowertext.Text = "Tester" --This is that the text will say.
lowertext.TextColor3 = Color3.fromRGB(0, 145, 255) --This is what the color of the text will be.
end
end
You are setting the condition to the First Name check before yours. Remove one of the ends and add another over your
if player.Name == "imnewand7" then statement.
So it should look like this :
if player.Name == "DISGUlSES" then
lowertext.Text = "Owner" --This is that the text will say.
lowertext.TextColor3 = Color3.fromRGB(0, 145, 255) --This is what the color of the text will be.
end
if player.Name == "imnewand7" then
lowertext.Text = "Tester" --This is that the text will say.
lowertext.TextColor3 = Color3.fromRGB(0, 145, 255) --This is what the color of the text will be.
end
You forgot to put an end in the first if statement here is the correct script i think:
local rep = game:GetService(“ReplicatedStorage”) --You can change this to ServerStorage for more security.
local nametag = rep.NameTagOwner
–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 == "DISGUlSES" then
lowertext.Text = "Owner" --This is that the text will say.
lowertext.TextColor3 = Color3.fromRGB(0, 145, 255) --This is what the color of the text will be.
end
if player.Name == "imnewand7" then
lowertext.Text = "Tester" --This is that the text will say.
lowertext.TextColor3 = Color3.fromRGB(0, 145, 255) --This is what the color of the text will be.
end
end
end
You’re also missing an end for the second statement. He has Two Connected Functions, then Two statements for a grand total of 4 end-s. Anymore or less is wrong.