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

"Http requests are not enabled."?

I'm trying to do a script builder, but whenever you paste the last snippet of code on the output box, you get "Http requests are not enabled."

Why is this happening?

script.Parent.FocusLost:connect(function()
	local HttpService = game:GetService("HttpService")
	loadstring(HttpService:GetAsync("hastebin.com/raw/"..script.Parent.Text))()
end)

Errors I get: Trust check failed, Http requests are not enabled

2 comments

0

If I've helped, be sure to accept my answer!

1 answer

✓ Accepted answer

Whoops, approached this from the wrong angle. I see FocusLost in your script, which indicates it's a localscript. HTTP Requests are only allowed through server-sided scripts. If you're trying to get it to show on your GUI, or communicate between client and server in this matter, see Remote Events and Remote Functions.

5 comments

0

So much more helpful. Thank you.

0

No problem.

0

One more question - This pastebin thing is to execute scripts (it's a script builder.) So if I were to execute a script using a pastebin link, would it still use a RemoteEvent? I changed the script again to normal script - I don't get errors but now it doesn't even work.

0

I'm a tad confused on what you're asking.

0

Whatever, it's fixed, thanks for the help.

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