I want to make a feedback webhook and while making the script I noticed that one spot of the script was not working. I used a remote event to connect the two variables that will be shown. I don’t know what to do. Thanks if you reply!
Looks like your message
variable isn’t being sent to the RemoteEvent. Webhook is receiving nil instead of a string for value
, which is probably the cause of the 400 error.
I have modified the script to make it send the message variable but it seems it still isn’t working.
Try converting the UserId to a string in the second field.
I ran tests a few days ago and that is not the problem. Without the message variable, nothing is wrong.
Now that you’ve corrected the message variable, try converting the userid to a string. Value expects a string, userid is an integer.
wait nevermind i misread
jdbfjfbeicbjeue30
Alright, try removing message
from the function connect arguments. MouseButton1Click returns an instance and overwrites the message
variable within the function, so that’s what’s causing the 400. Probably. Let’s hope it is.
What would I replace message with then? I do not believe I can get the local player’s input without sending arguments.
Ah, I see what you were trying to do.
You have to redefine message inside the function by doing message = Input.Text
before passing it as an argument to the RemoteEvent.
How would I get the Player’s Input message with a server script*?
By passing the data into the RemoteEvent. It’ll work if you change the event call to this:
remoteEvent:FireServer(Input.Text)