Thanks, added this line using your advice and it fixed the issue:
-- Server Region
local serverInfo = HttpService:JSONDecode(HttpService:GetAsync("http://ip-api.com/json/"))
while not serverInfo do
serverInfo = HttpService:JSONDecode(HttpService:GetAsync("http://ip-api.com/json/"))
if serverInfo then
break
end
task.wait(1)
end