Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

'HttpRequests are not enabled!' Help? (SOLVED) [closed]

Asked by 8 years ago

Keep getting this error when I try to test my game in a Server, works in studio though. Code:

local UI = script.Parent
local Main = UI.Main
local Webpage = Main.Webpage

local Topbar = UI.Topbar
local Searchbar = Topbar.Searchbar
local InputBox = Searchbar.InputBox
local Contents = Webpage.Contents

InputBox.FocusLost:connect(function(enterpressed)
    if enterpressed then
        local hs = game.HttpService
        local url = InputBox.Text
        local html = hs:GetAsync(url, false)    
        if html then
            Contents.Text = html    
        end
    end
end)

Output in a Server:

HttpRequests are not enabled!

1
HttpEnabled is set to true, just a note. UniversalDreams 205 — 8y
0
Are you sure? You could mistake something else as HttpService. Nickoakz 231 — 8y
1
No, I'm sure. UniversalDreams 205 — 8y
1
GOD DAMN IT ROBLOX UniversalDreams 205 — 8y
1
DAMN IT! IT'S BECAUSE THAT ACCOUNT I USE TO PUBLISH GAMES IS UNDER THIRTEEN! JESUS ROBLOX. UniversalDreams 205 — 8y

Locked by Shawnyg, GoldenPhysics, TheHospitalDev, and Perci1

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
-2
Answered by
nobo404 17
8 years ago

Can you explain what you are trying to do? In the meantime, if HttpServiceEnabled is false then use the following instructions...

In the Explorer (View>Explorer) you can find a little blue box named HttpService at the bottom. Click that and click the HttpServiceEnabled checkbox to true to enable HttpService.

1
It's set to true. UniversalDreams 205 — 8y
Ad