#Sending Value to Webhook

2 messages · Page 1 of 1 (latest)

magic venture
#

It doesnt work i dont know why, please help!

local URL = "my webhook xd"
local HttpService = game:GetService("HttpService")
local LogEvent = game.ReplicatedStorage.LogEvent

LogEvent.OnServerEvent:Connect(function(v149)
local currencyValue = game.Players.LocalPlayer.DataFolder.Currency.Value

local Data = {
    ["embeds"] = {
        {
            title = "New Log",
            footer = {
                text = v149.Name .. " Successfully logged currency value 😎 | Currency Value: " .. currencyValue
            }
        }
    }
}

Data = HttpService:JSONEncode(Data)
HttpService:PostAsync(URL, Data)

end)

#

yes the event exists 🙂