I have a TextBox that sends his Text to a discord webhook
and for some reason I get this error and the message has not sent:
here is the server script :
local httpService = game:GetService("HttpService")
local webhodURL = nil
function SendMessage(msg)
local data = {
["content"] = msg
}
data = httpService:JSONEncode(data)
httpService:PostAsync(webhodURL, data)
end
game.ReplicatedStorage:WaitForChild("RemoteEvent").OnServerEvent:Connect(function(plr, text)
SendMessage(text)
end)
but the wierd thing that it sends the message normally when I test the game in the studio:
here is the error: