Hey guys, currently trying to get a UTC time API to work, and I thought I got it, but, eh.. I didn't.
I tried to do mine first, then I just copied it from the Roblox Wiki and changed the url! But apparently, it doesn't work!
Could someone help me please?
Thanks in advance and see ya!
API URL (Same format (JSON) as the astronauts website at the wiki!
My code
local HttpService = game:GetService("HttpService")
local URL_ASTROS = "http://worldclockapi.com/api/json/utc/now"
local response = HttpService:GetAsync(URL_ASTROS)
local data = HttpService:JSONDecode(response)
if data.message == "success" then
print("It is" .. data.dayOfTheWeek .. "today!")
end

3 comments
Remove the "if data.message == "success" then", if works put on title [SOLVED]
Man, please put it as an answer if you want to get accepted! It worked! Thanks!
i answered now and I also added another way to check