I want to make a global message appear in the chat in all servers when a part is touched, but the furthest I can go is making it display in the server and not globally. All help highly appreciated. In case you want my script, here it is:
local debounce = false
local plr = game.Players.LocalPlayer
game.ReplicatedStorage.StageEvents.Stage100.OnClientEvent:Connect(function()
local ChatService = game:GetService("TextChatService")
local message = plr.name.." completed Stage 100!"
if debounce == false then
ChatService:WaitForChild("TextChannels"):WaitForChild("RBXSystem"):DisplaySystemMessage("<font color='#ff0000'>"..message.."</font>")
end
debounce = true
wait(3)
debounce = false
end)
So I fired it from when its touched. The script above is in StarterCharacterScripts.