Greetings. I’m currently trying to get a message screen working in my game which displays the current group shout. However it seems like the API is not returning the shout. According to the documentation this should be working correctly. I’ve checked the URL and it appears that the shout is no longer being showed. Is there a new URL/method for retrieving group shouts now? When the script is ran the pcall returns an error with the warning showing as “nil”
The code:
--//Services
local HttpService = game:GetService("HttpService")
--//Directory
local Shout = script.Parent.SurfaceGui.Shout
local Placeholder = "Awaiting Data..."
local Data
function updateShout()
local success, err = pcall(function()
Data = HttpService:JSONDecode(HttpService:GetAsync("https://groups.roproxy.com/v1/groups/2733772"))
end)
if (success) then
if (Data["shout"]) then
Shout.Text = Data["shout"]["body"]
else
Shout.Text = Placeholder
warn(err)
end
end
end
updateShout()
while wait(30) do
updateShout()
end