So, I'm trying to make developers have chat tags for my game, but for some unknown reason, it only gives the chat tag to FuddziezYT. Please someone help me with the script. Roblox studio shows that there is no errors but it only gives tags to one person still.I'm pretty bad at scripting so I need help to solve the issue. Here's the script :
game.Players.PlayerAdded:connect(function(plr)
local tags = Instance.new("Folder",plr)
tags.Name = "Tags"
if plr.Name == "FuddziezYT" then
local newTag = Instance.new("IntValue",tags)
newTag.Name = "CREATOR"
local chatColor = Instance.new("Color3Value",newTag)
chatColor.Name = "ChatColor"
chatColor.Value = BrickColor.new("Really red").Color
local tagColor = Instance.new("Color3Value",newTag)
tagColor.Name = "TagColor"
tagColor.Value = BrickColor.new("New Yeller").Color
if plr.Name == "Trollicus_Dev" then
local newTag = Instance.new("IntValue",tags)
newTag.Name = "CREATOR"
local chatColor = Instance.new("Color3Value",newTag)
chatColor.Name = "ChatColor"
chatColor.Value = BrickColor.new("Really red").Color
local tagColor = Instance.new("Color3Value",newTag)
tagColor.Name = "TagColor"
tagColor.Value = BrickColor.new("New Yeller").Color
if plr.Name == "DominusLegendary" then
local newTag = Instance.new("IntValue",tags)
newTag.Name = "DEV"
local chatColor = Instance.new("Color3Value",newTag)
chatColor.Name = "ChatColor"
chatColor.Value = BrickColor.new("Really red").Color
local tagColor = Instance.new("Color3Value",newTag)
tagColor.Name = "TagColor"
tagColor.Value = BrickColor.new("New Yeller").Color
if plr.Name == "david_mcpguy" then
local newTag = Instance.new("IntValue",tags)
newTag.Name = "DEV"
local chatColor = Instance.new("Color3Value",newTag)
chatColor.Name = "ChatColor"
chatColor.Value = BrickColor.new("Really red").Color
local tagColor = Instance.new("Color3Value",newTag)
tagColor.Name = "TagColor"
tagColor.Value = BrickColor.new("New Yeller").Color
end
end
end
end
end)

3 comments
Could you please put this into the whole script So I can just set the script as the one that works? Thanks.
I've edited the code
Thank you so much!