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

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

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!

2 comments

0

Do you mean like the status? Like sitting, jumping etc.

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.

1 answer

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.

2 comments

0

So I need to have a localscript for playerinput that passes it on to the script in ServerScriptService?

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)

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