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

How to use a require(ID#) script with 2 GUIs?

Asked by
Vexxied 10
8 years ago

So I am making a anti exploit program, and I have shortened the items down to 2 GUIs. The only problem is, when I made a script like this:

require(399005305)

require(399005409)

and placed it into StarterGUI (where the 2 GUIs need to be), it wont insert the GUIs when I go onto the game, please help.

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
8 years ago

When you use require(), it has to be requiring a module. Once you do require the module, you could have the modulescript then parent the GUIs to StarterGUI.

0
What script could I add to change the parent? Vexxied 10 — 8y
0
@Vexxied Inside the ModuleScript, simply Parent it. script.GUI.Parent = game.StarterGui. For a refresher on modules, search on the site "module", and you'll get a lot of results. Shawnyg 4330 — 8y
Ad

Answer this question