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

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

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

✓ Accepted answer

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.

2 comments

0

What script could I add to change the parent?

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.

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