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

I'm new to HttpService and I need help on a script. Why won't this work?

Asked by 8 years ago

I'm new to httpservice, I have loadstring and httpenabled enabled. Inside of this pastebin, it's supposed to return a message but it doesn't. Can anyone help? The script is:

loadstring(game:GetService("HttpService"):GetASync('http://pastebin.com/raw/fHb1QprF', true))()
0
I strongly recommend you do not enable loadstring for security reasons. It is always (to my limited knowledge) better to find a different way to accomplish your goal. GoldenPhysics 474 — 8y

2 answers

Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

That code should work. You probably need to make sure:

  • you have HTTP requests enabled

  • LoadstringEnabled is enabled

  • you're not trying to execute that in a LocalScript

Ad
Log in to vote
0
Answered by 8 years ago

I fixed it by doing ~~~~~~~~~~~~~~~~~ function pastebin(i) return game:GetService("HttpService"):GetAsync("https://pastebin.com/raw/"..i) end loadstring(pastebin("fHb1QprF"))() ~~~~~~~~~~~~~~~~~

Answer this question