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)

1 comment
Should probably use player's userid instead of player's name to make it works all the time even the player changed their name