Global Announcements

I was looking through this website for Global announcements and it provided Lua code for creating broadcasts. It gives me errors in the script. What I am trying to do is create announcements that would go to all the servers. Here is the code: (IGNORE URL, I’m not revealing the URL)

local httpService = game:GetService("HttpService")
local URL = "ha yeet"

while true do
	local success, result = pcall(function() return httpService:GetAsync(url)) end)
	if success then
		local data = httpService:JSONDecode(result)
		if data.updates then
		warn("error while fetching")

What errors does it print in the output?

No need to reinvent the wheel - Roblox has introduced MessagingService about a year ago.

How would I set it up so that it would create based on an incoming request? Nice analogy lol

It is all in the link. Make sure to check it out.

This is included in the link, and might be relevant: Cross-Server Messaging | Documentation - Roblox Creator Hub