You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I was doing some kind of testing with webhooks, but when i tried the webhook on the experience it does not work, only on studio.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried turning on the http request, but that didn’t change anything. also, while trying to look for errors, nothing was on the console.
local HttpService = game:GetService('HttpService')
local function GetINFO(Web)
local Response
local Success, Error = pcall(function()
Response = HttpsService:GetAsync(Web)
end)
if not Success then
error('something went wrong')
end
local JSON
local Success, Error = pcall(function()
JSON = HttpService:JSONDecode(Response)
end)
if not Success then
error('something went wrong')
end
return JSON
end
local function RequestForBasketball(Web, Data)
local JSON = HttpService:JSONEncode(data)
local Options = {
Url = Web,
Method = 'POST'
Headers = {
['Content-Type'] = 'application/json'
},
Body = JSON
}
local Response
local Success, Error = pcall(function()
Response = HttpService:RequestAsync(Options)
end)
if not Success then
error('something went wrong')
end
return Response
end
...