Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

'HttpRequests are not enabled!' Help? (SOLVED)

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!

5 comments

1

HttpEnabled is set to true, just a note.

0

Are you sure? You could mistake something else as HttpService.

1

No, I'm sure.

1

GOD DAMN IT ROBLOX

1

DAMN IT! IT'S BECAUSE THAT ACCOUNT I USE TO PUBLISH GAMES IS UNDER THIRTEEN! JESUS ROBLOX.

1 answer

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 comment

1

It's set to true.

This discussion is preserved as it was. New answers, comments, and votes are closed.