Advertisement
Guest User

TextChatService Chat Tags Example

a guest
Apr 9th, 2023
38,598
3
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | Source Code | 3 0
  1. local textChatService = game:GetService("TextChatService")
  2.  
  3. textChatService.OnIncomingMessage = function(message: TextChatMessage)
  4.    
  5.     local properties = Instance.new("TextChatMessageProperties")
  6.    
  7.     if message.TextSource then
  8.        
  9.         local player = game:GetService("Players"):GetPlayerByUserId(message.TextSource.UserId)
  10.        
  11.         if player.Name == "HashtagBlu_YT" then
  12.            
  13.             properties.PrefixText = "<font color='#00ffee'>[Developer]</font> " .. "<font color='#ff8400'>[W Rizz]</font> " .. message.PrefixText
  14.            
  15.         end
  16.        
  17.     end
  18.    
  19.     return properties
  20.    
  21. end
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement