local url = "" --webhook link--
local http = game:GetService("HttpService")
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function(player)
local data = {
['embeds'] = {{
['title'] = "Button clicked",
['description'] = player.Name .. " has clicked the button",
['url'] = "https://www.roblox.com/users/".. player.UserId .. "/profile"
}}
}
local finaldata = http:JSONEncode(data)
http:PostAsync(url, finaldata)
end)
Edit: My Error
