Hi! Basically I wanted to know how to put a tag infront of your name and also make it admin-only.
I know how to make it admin-only, I just mean that not everyone should have it.
Here is a picture of what I mean:
Thanks!
You need a script to go into ServerScriptService and then type this:
game.Players.PlayerAdded:connect(function(plr)
local tags = Instance.new("Folder",plr)
tags.Name = "Tags";
if false == true then
elseif plr.Name == "PLAYERNAME" then -- Player Name
local newTag = Instance.new("IntValue",tags);local chatColor = Instance.new("Color3Value",newTag);local tagColor = Instance.new("Color3Value",newTag);chatColor.Name = "ChatColor";tagColor.Name = "TagColor"
--EDIT BELOW
newTag.Name = "TAG NAME" -- Tag Name
chatColor.Value = Color3.fromRGB(255, 255, 255) -- Chat Color (default is 255,255,255)
tagColor.Value = Color3.fromRGB(255, 0, 0) -- Tag Color
end
end)
If you want to add multiple player’s, then add an elseif statement.
Hope this helps!
That doesn’t work for me.
There should be “TAG NAME” infront of my name.
Here is the script
game.Players.PlayerAdded:connect(function(plr)
local tags = Instance.new("Folder",plr)
tags.Name = "Tags";-- Player Name
local newTag = Instance.new("IntValue",tags);
local chatColor = Instance.new("Color3Value",newTag);
local tagColor = Instance.new("Color3Value",newTag);
chatColor.Name = "ChatColor";
tagColor.Name = "TagColor"
--EDIT BELOW
newTag.Name = "TAG NAME" -- Tag Name
chatColor.Value = Color3.fromRGB(255, 255, 255) -- Chat Color (default is 255,255,255)
tagColor.Value = Color3.fromRGB(255, 0, 0) -- Tag Color
end)
You forgot about the other end that is required.
I removed the if statement, as for testing I wanted everyone to get it.
I believe you have to add an if statement for the players.
Using the code you sent me, it still doesn’t work.
Code:
game.Players.PlayerAdded:connect(function(plr)
local tags = Instance.new("Folder",plr)
tags.Name = "Tags";
if false == true then
elseif plr.Name == "GEILER123456" then -- Player Name
local newTag = Instance.new("IntValue",tags);local chatColor = Instance.new("Color3Value",newTag);local tagColor = Instance.new("Color3Value",newTag);chatColor.Name = "ChatColor";tagColor.Name = "TagColor"
--EDIT BELOW
newTag.Name = "IDK" -- Tag Name
chatColor.Value = Color3.fromRGB(255, 255, 255) -- Chat Color (default is 255,255,255)
tagColor.Value = Color3.fromRGB(255, 0, 0) -- Tag Color
end
end)
I changed PLAYERNAME to GEILER123456 (my name).
Edit: Someone told me that I have to fork Roblox’s Chat Script and Customize it somehow.
He didn’t know the line and stuff like that though.
Is there any other way? If not, what line and what script is it?
Oh yeah you’re right it doesn’t work for me. I think maybe the code broke maybe. I’m not to sure though.