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

Custom Adonis admins command that will run a script ?

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

2 comments

0

the game?

0

Read the Adonis API and docs.

1 answer

✓ Accepted answer

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. ;)

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