Advertisement
Bestinhop23

Roblox Chat Colors and Tags - Server Script

Apr 3rd, 2021
2,738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local ServerScriptService = game:GetService("ServerScriptService")
  3.  
  4. local GameCreatorID = 246795618
  5. local TagName = "Owner"
  6.  
  7. local ChatService = require(ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
  8.  
  9. ChatService.SpeakerAdded:Connect(function(player)
  10.     local Speaker = ChatService:GetSpeaker(player)
  11.    
  12.     if Players[player].UserId == GameCreatorID then
  13.         Speaker:SetExtraData("NameColor", Color3.new(255/255, 0/255, 0/255))
  14.         Speaker:SetExtraData("ChatColor", Color3.new(255/255, 255/255, 0/255))
  15.         Speaker:SetExtraData("Tags", {{TagText = TagName, TagColor = Color3.new(255/255, 0/255, 0/255)}})
  16.     end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement