local data = "Tipper: " .. tipper.Name .. "\nAmount: " .. amountTipped .. "R$"
local finaldata = http:JSONEncode(data)
http:PostAsync(url, finaldata)
just doesnt work, no errors either
url is proxy url for webhook and http is httpservice
local data = "Tipper: " .. tipper.Name .. "\nAmount: " .. amountTipped .. "R$"
local finaldata = http:JSONEncode(data)
http:PostAsync(url, finaldata)
just doesnt work, no errors either
url is proxy url for webhook and http is httpservice
Are you sure you are using the right url?
Can you post the whole script but with personal parts censored?
like instead of the webhook link do “WEBHOOKLINKHERE” or something close.
local url = "https://hooks.rankgun.works/api/webhooks/blablabla"
local http = game:GetService("HttpService")
game:GetService("ReplicatedStorage"):WaitForChild("TipEvent").OnServerEvent:Connect(function(tipper, staff, amountTipped)
print(tipper.Name .. ", " .. staff.Name .. ", " .. amountTipped)
game:GetService("ReplicatedStorage").PlayerNotification:FireClient(tipper, "Tipped " .. staff.Name .. " " .. amountTipped .. "R$")
game:GetService("ReplicatedStorage").PlayerNotification:FireClient(staff, tipper.Name .. " has tipped you " .. amountTipped .. "R$")
local data = "Tipper: " .. tipper.Name .. "\nAmount: " .. amountTipped .. "R$"
local finaldata = http:JSONEncode(data)
print(finaldata)
http:PostAsync(url, finaldata)
end)
Can you show me the output and what data you’re printing?
00:47:31.864 avoidingsolo, avoidingsolo, 5 - Server - TipHandler:6
00:47:31.864 "Tipper: avoidingsolo\nAmount: 5R$" - Server - TipHandler:12 ```
I have never used rankgun before, i have used hyra (https://hooks.hyra.io), you can use the site to convert the webhook link.
change url to the converted link and replace the data part and postAsync with this, customize it however.
local HookData = {
["embeds"] = {{
['username'] = "Insert username here", --optional
["title"] = "Insert title here", -- optional
["type"] = "rich",
["color"] = tonumber("F30192"), --any color you want. CANT BE COLOR3 OR RGB
["description"] = "Message content"
}}
}
HookData = HTTPS:JSONEncode(HookData)
HTTPS:PostAsync("ConvertedURL",HookData)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.