When you click a button it should be saying "hi" in the discord
--//Local script
local Remote = game.ReplicatedStorage:WaitForChild("HttpEvent")
script.Parent.Enter.MouseButton1Click:Connect(function()
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local msg = "hi"
local data = {
content = msg;
}
Remote:FireServer(data)
end)
--//Server script
local HttpService = game:GetService("HttpService")
local webhook = "im not showing the webhook sorry"
local Remote = game.ReplicatedStorage:FindFirstChild("HttpEvent") or Instance.new("RemoteEvent", game.ReplicatedStorage)
Remote.Name = "HttpEvent"
Remote.OnServerEvent:Connect(function(Player, Data)
HttpService:PostAsync(webhook, HttpService:JSONEncode(Data))
end)
I have a Remote Event and all that, didn't work.

2 comments
Maybe this link will help you. https://devforum.roblox.com/t/discord-integration-a-guide-on-using-discord-through-roblox-updated/47090
thx