Need help with posting webhooks using proxy

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

1 Like

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.

1 Like
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)
1 Like

Can you show me the output and what data you’re printing?

1 Like
  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)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.