Joriangames

Chatmessage w/ Touching Part LOCALSCRIPT

Jan 9th, 2024
2,108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. -- HOW TO MAKE a CHATMESSAGE by TOUCHING PART!!! TextChatService BY BLOXIANCODE youtube.com/c/BloxianCode
  2. -- Tutorial: https://youtu.be/GhlRcTCkbT8
  3. local TextChatService = game:GetService("TextChatService")
  4. local remoteEvent = game.ReplicatedStorage.chatEvent
  5.  
  6.  
  7. remoteEvent.OnClientEvent:Connect(function(name)
  8.     task.wait(.5)
  9.     local message = "[SERVER] "..name.." touched a part"
  10.     TextChatService.TextChannels.RBXSystem:DisplaySystemMessage("<font color='#f7e702'>"..message.."</font>")
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment