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

How do I make a modulescript load a GUI?

So I have this module script saved to Roblox and I want to require it and load a GUI. Putting the GUI within the script doesn't work. Any help?

1 answer

✓ Accepted answer

When you create a module script, it'll create a table which it will then return. Change the local to a local function and return it at the end. Do all the UI code in the function, for example.

local function startApp()
  -- do stuff
end

return startApp()

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