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: local + _G = no good mix

Previous Thread :: Next Thread 
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
27 Jan 2013 09:44 AM
What happened to _G, it doesn't allow you to place the local keyword in front of it anymore, like:

local _G.hax = "noes"

It will give you this error:
Workspace.Script:1: unexpected symbol near '.'

But this won't:
_G.hax = "noes"

-

Since when was this removed? It used to work.
Did I miss something?
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
27 Jan 2013 09:49 AM
You can't establish a global variable if you declare it as local, derp.

<< AʙsᴏʟᴜᴛᴇLOL - Fᴏʀsᴀᴋᴇɴ Pʀɪᴍᴇ Gᴇɴᴇʀᴀʟ ​>>
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
27 Jan 2013 09:51 AM
>it _doesn't_ _allow_ you to place the local keyword in front of it _anymore_,
Report Abuse
eJorge is not online. eJorge
Joined: 09 Jun 2011
Total Posts: 5966
27 Jan 2013 09:52 AM
You can't use 'local' when adding a value to a table.
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
27 Jan 2013 09:53 AM
This is standard lua. That's because values in tables don't have scope . . . can't have scope . . .
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
27 Jan 2013 09:54 AM
Yes I see now...ok that was stupid. Ignore this.
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
27 Jan 2013 09:58 AM
BAHMP
Report Abuse
VisualCSharp is not online. VisualCSharp
Joined: 23 Nov 2012
Total Posts: 225
27 Jan 2013 09:58 AM
^
why
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
27 Jan 2013 10:00 AM
Woodstauk will be assisanated. (._. )
Report Abuse
VisualCSharp is not online. VisualCSharp
Joined: 23 Nov 2012
Total Posts: 225
27 Jan 2013 10:01 AM
*Hires contract killer*
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
27 Jan 2013 10:03 AM
Assasination weapon: Crowbar.
Report Abuse
UnAdmin is not online. UnAdmin
Joined: 10 Jul 2012
Total Posts: 4706
27 Jan 2013 10:16 AM
Assassination method:
Place crowbar perfectly standing on a trashcan
Some biker dude comes by and hits some kid that hits his head on the trashcan
The crowbar falls onto the street
Some ambulance runs over the crowbar sending it launching into the air
Ambulance crashes into a building
Crowbar goes down and hits his head

THE END!
~ᴬᴵᴺ'ᵀ ᵀᴴᴬᵀ ᴬ ᴷᴵᶜᴷ ᴵᴺ ᵀᴴᴱ ᴴᴱᴬᴰˑ~
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
27 Jan 2013 10:18 AM
The way of perfect assassin.
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
27 Jan 2013 10:20 AM
You guys are just secretly bumping this thread (._. )
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
27 Jan 2013 10:22 AM
Please..
Report Abuse
xXTechDignityXx is not online. xXTechDignityXx
Joined: 13 Jan 2013
Total Posts: 7
27 Jan 2013 10:25 AM
You can't just use local when you add values to tables.
That's cause values in tables can't have scopes.

~xXTechDignityXx
Report Abuse
Gaahl is not online. Gaahl
Joined: 19 Jun 2012
Total Posts: 964
27 Jan 2013 10:25 AM
"Since when was this removed? It used to work."

It never worked though.
Report Abuse
xXTechDignityXx is not online. xXTechDignityXx
Joined: 13 Jan 2013
Total Posts: 7
27 Jan 2013 10:26 AM
@Gaahl
Indeed.
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
27 Jan 2013 10:26 AM
@Tech: That was already said, thanks for your time though.

@Gaah: It did.
Report Abuse
Gaahl is not online. Gaahl
Joined: 19 Jun 2012
Total Posts: 964
27 Jan 2013 10:28 AM
It never would have worked; it's always been like that since tables and "local" were applied to Lua.
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
27 Jan 2013 10:32 AM
I'm sure it was.

But it doesn't matter, it doesn't work (anymore)...that's all that matters.
Report Abuse
Gaahl is not online. Gaahl
Joined: 19 Jun 2012
Total Posts: 964
27 Jan 2013 10:32 AM
It never worked you stubborn fool.
Report Abuse
HoloEverywhere is not online. HoloEverywhere
Joined: 24 Aug 2012
Total Posts: 673
27 Jan 2013 10:33 AM
Why do you want to define a global variable into a local variable
Report Abuse
UnAdmin is not online. UnAdmin
Joined: 10 Jul 2012
Total Posts: 4706
27 Jan 2013 10:33 AM
aaaaaaaaaaaaaaaaaaah don't say that

~ᴬᴵᴺ'ᵀ ᵀᴴᴬᵀ ᴬ ᴷᴵᶜᴷ ᴵᴺ ᵀᴴᴱ ᴴᴱᴬᴰˑ~
Report Abuse
xXTechDignityXx is not online. xXTechDignityXx
Joined: 13 Jan 2013
Total Posts: 7
27 Jan 2013 10:35 AM
I still don't get the sense of this topic.
Myrco, what are you actually trying to do? You didn't even tell the point why you made this topic.
I really don't see a benefit of declaring a global variable into a local variable. It's not possible, that's all.
It never worked, and it never will.
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