Straight to the point: I’m making a script for one of my games, you’re supposed to type in something in a certain textbox, then press a button and it should send what you typed in to whatever is linked to the remoteEvent called “door”. The problem is, just as I said about a year ago, I’m a bad scripter, if I am one, even, so it obviously doesn’t work. The error that pops up is: "Unable to cast value to Object - Server - Script:28"
Are you sure you’re using the right function? Contrary to their names, FireClient is meant to be called from the server to the client, and FireServer should be called from the client to the server.
From the description you wrote, I assume that’s what you meant to use.
I should try using FireServer, one moment… It says “FireServer can only be called from the client”.
I dunno, the thing you wrote seemed pretty logical to me. Also, wanted to add: the event is located in the workspace, and so is the script, if it’s any helpful.
But there still remains the issue that GUIs are inaccessible by Server scripts and another RemoteEvent must be used to send the text in the frame/TextBox from the client to the server, then to other clients.
EDIT: For the full solution scroll down further and disregard this comment
It’s fine.
You can place a Script under the frame and change its RunContext property to “Client”. That means it will work like a localscript but anywhere as long as that place is replicated to the client (so yes in this case)
You can then create a second RemoteEvent preferably somewhere close to the other one so it can be called by the player.
Then, just plug the input of one RemoteEvent into the other.
*REMEMEBER to use TextFiltering service on the server at this stage
Nope, it does not.* That’s why you have to use TextFiltering service.
Once you get it up and running I will explain how to implement text filtering.
* What I mean is that Roblox does NOT automatically moderate the messages sent by RemoteEvents as they don’t necessarily know that the contents is a user-generated message