So I decided to make a webhook on discord that messages you when a player joins in a game, and I added an extra feature which allows players to DM you directly, but there’s a bug…
As you can see there’s a bug on the actual server saying: roblox http requests are not enabled, but my HTTP service is already enabled.
local HTTP = game:GetService(“HttpService”)
local Key = “########”
local HookData = {
[‘content’] = “”;
}
– Join Webhook
local player = game.Players.LocalPlayer
repeat wait(1) until player ~= nil
–HookData.content = (“" … player.Name … "” … " has joined the server!“)
–HTTP:postAsync(Key, HTTP:JSONEncode(HookData))
– Feedback/Comment Webhook
function Submit()
HookData.content = (”**" … player.Name … " has sent you a feedback: “… script.Parent.TextBox.Text …”")
HTTP:postAsync(Key, HTTP:JSONEncode(HookData))
end
script.Parent.TextBox.SubmitButton.MouseButton1Click:connect(Submit)