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

Custom Adonis admins command that will run a script ?

Asked by 5 years ago

any ideas? I really need this. I am making a SCP game and want to be able to do :fullsitelockdown and have the site lockdown

0
the game? DeceptiveCaster 3761 — 5y
0
Read the Adonis API and docs. Dog2puppy 168 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

I recommend you taking a look into module scripts. They are scripts that store functions that you can run with other scripts. Here's a link to the Dev Wiki about this: http://wiki.roblox.com/index.php?title=API:Class/ModuleScript

If you are too lazy or just don't understand it, a cheap and dirty way of doing this is by changing script's ".enabled" to true.

Example:

game.ServerScriptService.YourScript.Enabled = true --makes the script run (make sure to disable this manually so it doesn't run as soon as your game starts)

wait(30) --A "wait" before disabling it

game.ServerScriptService.YourScript.Enabled = false --Disables the script

I still recommend you using module scripts so you don't have so many scripts in your game but I'm trying to keep this as simple as possible.

If you have any problems or questions please contact me. ;)

Ad

Answer this question