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

My script to edit a paste in Pastebin is not working and I dont know why? [Solved]

Asked by 6 years ago
Edited 6 years ago

I found this.

Here is my script. It also logs on so you can actually edit.

local http = game:GetService('HttpService')
local edit = --Not shown cuz I dont want you to see it
local login = 'https://pastebin.com/login'
local send = 'Someone read this message!'
local password = --Not shown for obvious reasons.
local username = --Again, not shown.
local tab = {
    ['user_name'] = username, --I found the "user_name" part and the "user_password" part using inspect element, so I assumed you had to use it.
    ['user_password'] = password
} 

script.Parent.MouseButton1Click:connect(function()
    http:PostAsync(login, http:JSONEncode(tab))
    http:PostAsync(edit, send)
end)

It is a server script in a TextButton, just saying. There is a part above it, and that part works. I have HttpService on, so dont answer that with that explanation.

1 answer

Log in to vote
-3
Answered by 6 years ago

You have local tab = {username, password} but you are trying to send http:PostAsync(login, http:JSONEncode(table))

0
so what should I do? hiimgoodpack 2009 — 6y
0
Either change table to tab or change tab to table VelocityTransport 104 — 6y
0
Im also new at the HttpService. Also, most of the Http tutorials on youtube is clickbait. hiimgoodpack 2009 — 6y
0
Also, I did that and it stil does not work. hiimgoodpack 2009 — 6y
Ad

Answer this question