Forum > Scripts >

help with http postasync

Posts: 3

Threads: 2

Joined: Apr, 2023

Reputation: 0

Posted

local data = {
    ["embeds"] = {{
			['username'] = "test",
			["title"] = 'You got a Titanic Cat (1/1e6)',
			["type"] = "rich",
			["color"] = tonumber(0x4287f5)
		}}
}
local https = game:GetService('HttpService')
local data = https:JSONEncode(data)
local success,errorm = pcall(function()
    https:PostAsync('https://webhook.lewisakura.moe/api/webhooks/kisfksdnfsdfsdf/sdfsdfsfsdfsdfjksdfks', data)
end)
print(success,errorm)

it prints : "false Http requests can only be executed by game server"

im using electron for roblox uwp

  • 0

Posts: 150

Threads: 7

Joined: Feb, 2023

Reputation: 5

Replied

Yeah because exploits can't execute the normal http_request you should probably use

the function request

 

  • 0

https://media.discordapp.net/attachments/1134643100715855893/1138795549244539011/SiggyOnGod.png

Posts: 8

Threads: 0

Joined: Apr, 2023

Reputation: -20

Replied

lol you dont know anything

  • 0

Roblox lua scripter

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )