I have a script that sends a message to a discord channel, the Webhook part works just fine and sends messages but it isn't working now, I am checking to see if a bool is true and if so then send the message with a given Username and Message, the Message part that is sent from a Localscript works successfully but the Server script does not, I set up a few prints and it doesn't get past the very first one.
if game.Workspace.BoolValue.Value == true then
print("BoolValue is True")
local url = "https://discordapp.com/api/webhooks/291973926093848578/3JBUcZ6sStsGQ0MOdWey4oSIw11opaEPga_vw1H2MiWWimaM4vs4B44l9H7W353NkpTd"
local http = game:GetService("HttpService")
if http.HttpEnabled == true then
print("Http is True")
end
local HookData = {
['username'] = game.Workspace.Username,
['content'] = game.Workspace.Message
}
HookData = http:JSONEncode(HookData)
wait(0.4)
http:PostAsync(url, HookData)
wait (0.01)
game.Workspace.BoolValue = false
end
There is no error from the output what so ever,
This next script works perfectly fine but I will give it to you as all of the information I have will help debug this script
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent
local textBox = Instance.new("TextBox")
textBox.Parent = screenGui
textBox.Position = UDim2.new(0, 700, 0, 300)
textBox.Size = UDim2.new(0, 150, 0, 50)
textBox.BackgroundColor3 = BrickColor.White().Color
textBox.Text = "Type Your Message Here"
textBox.FocusLost:connect(function(enterPressed)
if enterPressed == true then
game.Workspace.Message.Value = textBox.Text
game.Workspace.Username.Value = game.Players.LocalPlayer.Name
game.Workspace.BoolValue.Value = true
end
end)

2 comments
you forgot to change app.com to .osyr.is
discordapp.com is blocked in roblox