NOTE: I HAVE HTTP SERVICE ENABLED!

So I am making an application center using HTTP services, all the answers given by the player that have been filled in the textbox ui will be posted in a channel through a discord webhook ( i used remote events )

Here is the Local Script:

local gui = script.Parent
local answer = script.Parent.Parent.Submit
local question = script.Parent.Parent.Question
local FirstRemote = script.Parent.Parent.Parent.FirstRemote


gui.MouseButton1Click:Connect(function()
	if answer.Text == "" then return 
	elseif not answer.Text == "" then
     question.Text = "What is your Roblox Username?"
local FirstAnswer = answer.Text
      local AnswerOne = answer.Text
FirstRemote:FireServer(FirstAnswer)
print("Remote is Fired!")

end
end)

Server Script:

local FirstRemote = script.Parent.Parent.Parent.FirstRemote

FirstRemote.OnServerEvent:Connect(function(player, FirstAnswer)
	local http = game:GetService("HttpService")
local Data = {
	["content"] = FirstAnswer} ----- I tried this too ["content"] = "hello world"] but even that nothing is posted

Data = http:JSONEncode(Data)

http:PostAsync("https://discordapp.com/api/webhooks/701085097771925504/FwbdMxSySyxi0njvRKRsS_mcNg2jKQTVqjbXaqj3jONJaiA-v8dm3koXKlpAHZsm99zR", Data)
	
	
end)

The thing I noticed when the remote is fired it does not even print so that means the remote did not fire, I Don't know why ( i even tried this without remote events, just a server script, and still nothing is posted by the webhook or the print )

2 comments

0

is the first remote instance a value if it is then type local FirstRemote = script.Parent.Parent.Parent.FirstRemote.Value

0

nope it is a remote event