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

I was working on this cause I was bored and it says trust check failed, any help?

Asked by 5 years ago

So I had an idea that I wanted to make a game where you can change the name and description of my game through api and when I run this:

game.ReplicatedStorage.changer.OnServerEvent:Connect(function(plr, name, desc)
    local HttpService = game:GetService('HttpService')
    local api = 'https://www.roblox.com/places/3523525018/update'
    local Parameters = {
        ["__RequestVerificationToken"] = "nope",
        ["Name"] = name,
        ["Description"] = desc
    }
    local data = ""
    for k,v in pairs(Parameters) do
        data = data .. ("&%s=%s"):format(
            HttpService:UrlEncode(k),
            HttpService:UrlEncode(v)
        )
    end
    data = data:sub(2)
    local response = HttpService:PostAsync(api, data, Enum.HttpContentType.ApplicationUrlEncoded, false)
end)

it doesn't work, It says Trust check failed. If it's roblox's api can I just make an iFrame?

0
btw why i say "nope" in request verification is cause i dont want someone to have my RVT, duh SaosAccount 0 — 5y
1
You cant use Httpservice to get/post on roblox links. MachoPiggies 526 — 5y
0
So I should create an iFrame? SaosAccount 0 — 5y
0
anyone? SaosAccount 0 — 5y

Answer this question