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

How does script hiding work?

Asked by 8 years ago

I am learning how to script and have been looking at the Roblox Wiki, taking some online classes, and just looking at free to take scripts to see if I understand how they work. However while looking through Scripths Admin Infinite I realized there is not scripts in it. How does this work?

https://www.roblox.com/Kohls-Admin-Infinite-Read-Description-item?id=172732271

0
They use require, and then script = nil. This makes it so you can not see the script when it's being used. JamesLWalker 297 — 8y

1 answer

Log in to vote
2
Answered by 8 years ago

Scripth along with many other scripters use the require function which allows a asset that was created by the same user to implement a model or module into the game the script is it. This allows for the user to keep their content out of the hands of other users, which enables more originality.

However, there is a way around this. Creating a personal place will allow the module to be put in and the user can save the Personal Place, allowing them to access that module loaded in from studio

But wait, that is stealing, right?

Yes, but there is an easy way around it. Simply add script = nil to the beginning or end of MainModule, which will remove the main asset loaded in, therefore giving complete privacy to the user and their items.

You can read more about all of this in these following links Modules: http://wiki.roblox.com/index.php?title=API:Class/ModuleScript Private Modules: http://wiki.roblox.com/index.php?title=Private_module Require Function: http://wiki.roblox.com/index.php?title=Require

0
Didn't think of setting the Script's parent to nil would work. Hmm... Going to have to try that out. M39a9am3R 3210 — 8y
0
It allows for the ModuleScript to execute thee called functions, while keeping it hidden. It's pretty ingenious on Roblox's part User#9949 0 — 8y
Ad

Answer this question