I want it so if I want to announce something to all the players that are playing my game I can. If you have can you give me a forum from the wiki or dev hub? Also, only one person can do this. So it has perms.
Try this
-- Global message system local Players = game:GetService("Players") local httpService = game:GetService("HttpService") local messagingService = game:GetService("MessagingService") function callbackFunction(serviceData) local decodedData = httpService:JSONDecode(serviceData.data) print(decodedData.sender.." : "..decodedData.message) end) Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(msg) local messageData = { sender = player.Name, message = msg, -- filter message first! } local encoded = httpService:JSONEncode(messageData) messagingService:PublishAsync("Chat", encoded) end) end) messagingService:SubscribeAsync("Chat", callbackFunction)
Closed as Not Constructive by Luka_Gaming07 and hiimgoodpack
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?