I have no error in output. Any problem's?
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:JSONEncode(data) http:PostAsync(Link,data) wait() print(data) end while true do wait(5) a() end
Jill, did you review the Pastebin API? Posting to Pastebin requires an application/x-www-form-urlencoded POST format.
My little Pastebin API I made a while ago:
local API='http://www.pastebin.com/api/api_post.php'; local HTTPService=game:service'HttpService'; local strf=string.format; function pastebin_get(paste_id) return HTTPService:getAsync( strf('http://www.pastebin.com/raw.php?i=%s',tostring(paste_id)), true ); end; function pastebin_post(dev_key,user_key,paste_name,paste_code) local Data={ 'api_option=paste'; strf('api_user_key=%s',tostring(user_key)); 'api_paste_private=1'; strf('api_paste_name=%s',HTTPService:UrlEncode( tostring(paste_name or 'Misc')) ); 'api_paste_expire_data=N'; 'api_paste_format=lua'; strf('api_dev_key=%s',tostring(dev_key)); strf('api_paste_code=%s',HTTPService:UrlEncode( tostring(paste_code)) ); }; Data=table.concat(Data,'&'); local Result=HTTPService:postAsync(API,Data,2); print('Results: '..Result); return(Result); end;
The dev_key is your developer key on Pastebin. Note, this may not work, for I just fixed it.(I don't use it, I have my own site to hold data)