Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how can i make a server script get the text from a TextBox?

im trying to make a team system for my game but i cant even get a server sided script to get text from a TextBox because its client sided (ik it has something to do with remoteEvents but i have no clue how those work in the slightest, all i can get it to do is tell witch player fired the even (and tie functions to it)

1 answer

✓ Accepted answer

In this case, since your server script needs to ask a client for something and get the result back, you should create a RemoteFunction, invoke it from the server, and handle it on the client.

See this section of the RemoteFunction Wiki page for an example on how to call a RemoteFunction from the server and wait for the client (LocalScript) to finish. Also, in your case, you'll want to return a string from the client (eg. at the end of onCreatePopupRequested).

1 comment

0

ty

This discussion is preserved as it was. New answers, comments, and votes are closed.