umm hi recently i tried to put an Owner name tag on roblox chat and i dont know whats wrong with the script can someone help me ?
the script: local chatService = require(game.ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local tags = { [0] = {TagText = "Owner", TagColor = Color3.fromRGB(170, 0, 250)}, -- The 0 must be changed to the the id of the user you want the tag to have }
chatService.SpeakerAdded:Connect(function(horthd_new) local speaker = chatService:GetSpeaker(horthd_new) local player = game.Players[horthd_new]
if tags[horthd_new.817233455] then speaker:SetExtraData("Tags",{tags[Horthd_new.817233455]}) end
end)
Hey there! I have my own script that I use in my game that you can copy. I made this script 5 months ago and I forgot how it works.
Also, remember to put this script into ServerScriptService.
local ServerScriptService = game:GetService("ServerScriptService") local ChatService = require(ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService")) local Players = game:GetService("Players") local Owner = {'YOUR MOM'} --Change YOUR MOM to your username. ChatService.SpeakerAdded:Connect(function(PlrName) local Speaker = ChatService:GetSpeaker(PlrName) for _, v in pairs(Owner) do if Players[PlrName].Name == v then Speaker:SetExtraData('Tags', {{TagText = "Owner", TagColor = Color3.fromRGB(255, 209, 0)}}) -- Change this RGB value to the desired color. end end end)
Closed as Not Constructive by Goulstem
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?