Alright so, I’m working on a plugin and I cannot seem to check if theres game:GetService('HttpService').HttpEnabled. Is there any way around this since I just want to read the variable and not change it.
You could just do the following:
local value = game:GetService('HttpService').HttpEnabled
if value then
end
If that’s what you wanted.
You can do this with the command bar, not with scripts.
Here is a solution which should work most of the time. I use google.com because it’s probably the most stable website ever.
local http = game:GetService("HttpService")
local g,b = pcall(function()
http:GetAsync("google.com")
end)
if not g and b == "Http requests are not enabled. Enable via game settings" then
print("requests off")
end
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.