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

Why Isnt this PostAsync() posting on Pastebin?

Its reporting the Print at the end of the Post yet it doesnt Post :/ Any ideas?

local Link=('http://pastebin.com/maN3f8pW')
local http=game.HttpService
local data={'m=Instance.new("Message",game.workspace) m.Text="PASTEBIN! wait(15) m:remove()'}

function a()
data=http:JSONDecode(data)
http:PostAsync(Link,data)
wait()
print(data)
end


while true do
wait(5) 
a()
end 

4 comments

0

Wait what. Is that lua? o.o. Yo no comprendo

0

I didn't think that you could send data through the ROBLOX engine. I thought it could only receive.

0

Yes guys its Lua, Im just a advanced scripter with a crappy rep because nobody understands my way of coding. And yes it can receive and post from the game engine.

0

Mk, Well. I have another question about JSON but... thank you anyways guys!

1 answer

✓ Accepted answer

http:JSONDecode(data) should be http:JSONEncode(data).

Hope this helps!

  • DuckWick

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