Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to monitor for player input via a script in ServerScriptService?

Asked by 6 years ago

Howdy, I started out with a simple fireball script that was stored in the starterpack of each player, the script waited until it detected the player pressing the "q" key. Recently, I found out that to keep people from copying your script it's wise to keep it in the ServerScriptService, however, I'm not exactly sure how to look for input from a specific player with a script in that location.

Any help is greatly appreciated. Thanks!

0
Do you mean like the status? Like sitting, jumping etc. TheForgottenTale 23 — 6y
0
You use a LocalScript and a ServerScript. You pass what you need from the LS to the SS using Remote Events/Functions. If FilteringEnabled is on, exploiters can't steal the Script. Azarth 3141 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I am unclear what you are saying about input from a specific player with a script in that location.

However, if you put a script in ServerScriptService, in the real game you can see noting in that service, but scripts will still run in it.

So if you're looking to address the script in that service, it would not be possible.

0
So I need to have a localscript for playerinput that passes it on to the script in ServerScriptService? AshtonFearBolt 5 — 6y
0
No, I am saying that if you put a script in ServerScriptService, it would not appear in the real game but the scripts inside of that service would still run. (AKA THE SCRIPTS ARE INVISIBLE) User#18043 95 — 6y
Ad

Answer this question