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

Why Isnt this PostAsync() posting on Pastebin?

Asked by 10 years ago

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 
0
Wait what. Is that lua? o.o. Yo no comprendo Perci1 4988 — 10y
0
I didn't think that you could send data through the ROBLOX engine. I thought it could only receive. RoboFrog 400 — 10y
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. jillmiles1 3 — 10y
0
Mk, Well. I have another question about JSON but... thank you anyways guys! jillmiles1 3 — 10y

1 answer

Log in to vote
2
Answered by
Elttob 15
10 years ago

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

Hope this helps!

  • DuckWick
Ad

Answer this question