Hello, I have a feedback button in my game that normally accesses a website which sends feedback to a bot on Discord, but I just tested it and it says HTTP 403. How do I fix this?
It says the error is on line 23.
local Player = game.Players.LocalPlayer
local maxCharacters = 300
local RS = game:GetService("ReplicatedStorage")
local db = false
local feedbackMain = script.Parent.Parent.FeedbackFrame
feedbackMain.CharactersLeft.Text = maxCharacters - #feedbackMain.InputBox.Input.Text.. " Characters Left"
feedbackMain.InputBox.Input.Changed:Connect(function()
feedbackMain.CharactersLeft.Text = maxCharacters - #feedbackMain.InputBox.Input.Text.. " Characters Left"
if maxCharacters - #feedbackMain.InputBox.Input.Text < 0 then
feedbackMain.CharactersLeft.TextColor3 = Color3.fromRGB(255,50,50)
else
feedbackMain.CharactersLeft.TextColor3 = Color3.fromRGB(255,255,255)
end
end)
feedbackMain.MessageButton.MouseButton1Click:Connect(function()
if not db and maxCharacters - #feedbackMain.InputBox.Input.Text > 0 then
db = true
local msg = feedbackMain.InputBox.Input.Text
feedbackMain.InputBox.Input.Text = "Delivering Message..."
feedbackMain.InputBox.Input.TextEditable = false
local response = RS:WaitForChild("SendFunction"):InvokeServer(msg)
feedbackMain.InputBox.Input.Text = ""
feedbackMain.InputBox.Input.PlaceholderText = response
wait(5)
if feedbackMain.InputBox.Input.PlaceholderText == response then
feedbackMain.InputBox.Input.TextEditable = true
feedbackMain.InputBox.Input.PlaceholderText = "Enter your feedback here!"
end
wait(30)
db = false
end
end)
script.Parent.MouseButton1Click:Connect(function()
feedbackMain.Visible = not feedbackMain.Visible
end)
Other script in case its needed:
local webhook = "https://webhook.lewisakura.moe/api/webhooks/1175217104849473597/7HWSDE1IPlDDbRTgFejZHQcTz8LmrIevoorH1COh_Piw_wbrbHsfg8U1xasl5EM4LUCL/queue"
local SendFunction = game.ReplicatedStorage.SendFunction
local HTTP = game:GetService("HttpService")
function SendFunction.OnServerInvoke(Player, msg)
local payload = HTTP:JSONEncode({
content = msg,
username = Player.Name.." ("..Player.UserId..") sent feedback!"
})
HTTP:PostAsync(webhook, payload)
return "Feedback recieved!"
end
Did Roblox break this? Thank you!