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 » Scripting Helpers
Home Search
 

Re: Global Variables in Local Scripts

Previous Thread :: Next Thread 
Praecedo is not online. Praecedo
Joined: 27 Dec 2011
Total Posts: 308
09 Jun 2013 01:06 AM
Can you use _G variables in local scripts?

Probably a stupid question (guessing the answer is no), but I just wanted to check.
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
09 Jun 2013 01:15 AM
Yes, you can use global variables in a local script however you won't be able to access global variables made in server side scripts.
Report Abuse
Praecedo is not online. Praecedo
Joined: 27 Dec 2011
Total Posts: 308
09 Jun 2013 01:33 AM
So if I create the variable in a script in the Workspace then tried to access it in a LocalScript in the PlayerGui it wouldn't work?
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
09 Jun 2013 01:41 AM
Nope. Scripts in Workspace run on the server - roblox's game that handles everything. LocalScripts run on your computer, so they can access your mouse/keyboard and make everything seemless. There isn't a good way to send variables back and forth other then StringValues and stuff, and in most cases you don't need to either.
Report Abuse
Praecedo is not online. Praecedo
Joined: 27 Dec 2011
Total Posts: 308
09 Jun 2013 01:56 AM
Alright, thanks. I guess I'll figure out another way to do what I'm trying to do.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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