Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --I DIDN"T MAKE THIS I GOT IT FROM HERETO GET IT TO WORK YOU HAVE TO PUT THE SCRIPT IN STARTERPLAYERSCRIPTS
- --https://www.youtube.com/watch?v=BSUrUpIMTgA
- --TO GET IT TO WORK YOU HAVE TO PUT THE SCRIPT IN STARTERPLAYERSCRIPTS
- --THIS MOST LIKELY BE BANNABLE TO USE IT AT YOUR OWN RISK
- server script: local Players = game:GetService("Players")
- local rs = game:GetService("ReplicatedStorage")
- local chatevent = rs:WaitForChild("chat")
- Players.PlayerAdded:Connect(function(player)
- player.Chatted:Connect(function(message)
- chatevent:FireAllClients("[" .. player.Name .. "]: " .. message)
- end)
- end)
- client script:
- local tcs = game:GetService("TextChatService")
- local rs = game:GetService("ReplicatedStorage")
- local chatevent = rs:WaitForChild("chat")
- local textChannels = tcs:WaitForChild("TextChannels", 10)
- local system = textChannels:WaitForChild("RBXSystem")
- chatevent.OnClientEvent:Connect(function(formattedMessage: string)
- system:DisplaySystemMessage(formattedMessage)
- end)
Advertisement
Add Comment
Please, Sign In to add comment