here is the code i've made:
local webhook = 'webhook here'
local HS = game:GetService('HttpService')
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player)
local randomskinnum = math.random(math.random(1,5), math.random(5,10))
print(randomskinnum)
local message = {
['content'] = player.Name.. ' got a number of '.. randomskinnum
}
local msg = HS:JSONEncode(message)
HS:PostAsync(webhook, msg)
end)
For now, it can only send messages in a channel but I want to know how I can make it send a direct message to a certain user.
