generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Is there any way to require global variables

Previous Thread :: Next Thread 
feqi is not online. feqi
Joined: 15 Feb 2016
Total Posts: 35
17 Feb 2016 12:52 AM
local GUI = require(_G.GUIAPI)
local Cards = require(_G.SUMMONLIST)
local Object = require(_G.OBJECTAPI)

Error: Attempted to call require with invalid argument(s).
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
17 Feb 2016 12:54 AM
You mean to wait until they exist??? or...



Report Abuse
feqi is not online. feqi
Joined: 15 Feb 2016
Total Posts: 35
17 Feb 2016 12:55 AM
oh lol
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
17 Feb 2016 12:56 AM
If I said is what you want too accomplish (probably not, lol) this might work:

repeat wait() until _G.Variable == true???



Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
17 Feb 2016 12:58 AM
require is for modules.
What are you expecting to happen when you 'require' a value from _G?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image