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 tables not working?

Previous Thread :: Next Thread 
HatHelper is not online. HatHelper
Top 25 Poster
Joined: 02 Mar 2009
Total Posts: 46305
08 Mar 2012 02:57 PM
_G.Table = {}

Isn't working in play mode :/
Report Abuse
slayer9365 is not online. slayer9365
Joined: 22 Oct 2007
Total Posts: 2312
08 Mar 2012 02:58 PM
Did that happen in the last update, because I haven't been here in a while. The last time I was here they were here, then they werent, then they were.
Report Abuse
xvgigakid is not online. xvgigakid
Joined: 22 Jun 2008
Total Posts: 4407
08 Mar 2012 03:01 PM
@HatHelper

cOLD mOLD
_G. doesn't work in servers anymore.

_G. should be removed and replaced with static functions and variables.

BUT now I use _G. to check if a server is running, if the script breaks then we have a server, if not, its in Edit mode.

static function Bob()

end

static table = {}
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
08 Mar 2012 03:45 PM
Umm ....

_G works just fine. >_>
And this static stuff of which you speak does not work.
Report Abuse
xvgigakid is not online. xvgigakid
Joined: 22 Jun 2008
Total Posts: 4407
08 Mar 2012 03:46 PM
@Agent

I said we should replace _G. with static.
static hasn't been added yet :P
static is just faster to type.

And _G. does not work on servers
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
08 Mar 2012 03:47 PM
I interpreted that we should replace _G with static in our scripts. Oops.
_G DOES work in servers. I just tested.
Report Abuse
xvgigakid is not online. xvgigakid
Joined: 22 Jun 2008
Total Posts: 4407
08 Mar 2012 04:08 PM
Orly nao?
Ima go check,
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
08 Mar 2012 04:12 PM
[ Content Deleted ]
Report Abuse
HatHelper is not online. HatHelper
Top 25 Poster
Joined: 02 Mar 2009
Total Posts: 46305
08 Mar 2012 04:23 PM
No it must be roblox bugs again.
Should have seen that coming with something as potentially breakable as a variable.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
08 Mar 2012 04:24 PM
[ Content Deleted ]
Report Abuse
HatHelper is not online. HatHelper
Top 25 Poster
Joined: 02 Mar 2009
Total Posts: 46305
08 Mar 2012 04:27 PM
There is nothing you can do; I'm not posting scripts.
They work perfectly in build mode.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
08 Mar 2012 04:31 PM
_G. works for my disco game....

_G.Hint = {"Works?"}

Other script

wait(10)
h = Instance.new("Hint",Workspace)
h.Text = _G.Hint[1]--Maybe needing a tostring?

Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
08 Mar 2012 04:40 PM
[ Content Deleted ]
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
08 Mar 2012 04:43 PM
"I would even hack your place, if you wanted to."

That's cruel. And if you did, you would get all hate like jared and pierson.
Report Abuse
xvgigakid is not online. xvgigakid
Joined: 22 Jun 2008
Total Posts: 4407
08 Mar 2012 04:45 PM
@AFF

I just tested it and _G does work again :/

@Oysi

Dude _G was broken some time around september. I remember trying to use it in January and it was not working.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
08 Mar 2012 04:50 PM
"Dude _G was broken some time around september. I remember trying to use it in January and it was not working."

Now I know that's false. Because I made my game around December and I used three variables with _G.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
08 Mar 2012 04:52 PM
[ Content Deleted ]
Report Abuse
HatHelper is not online. HatHelper
Top 25 Poster
Joined: 02 Mar 2009
Total Posts: 46305
08 Mar 2012 04:52 PM
No LocalScripts.
Doesn't work because it doesn't want to.
I took out the _Gs and turned it into .ChildAdded stuff
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
08 Mar 2012 04:54 PM
[ Content Deleted ]
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
08 Mar 2012 04:55 PM
scripts running in a LocalScript run on the player's computer, so they are in a separate instance of Roblox and can't share data with non-local scripts except by using objects such as IntValue.
Report Abuse
xdhunta1774 is not online. xdhunta1774
Joined: 28 Jun 2011
Total Posts: 1112
08 Mar 2012 04:56 PM
[ Content Deleted ]
Report Abuse
HatHelper is not online. HatHelper
Top 25 Poster
Joined: 02 Mar 2009
Total Posts: 46305
08 Mar 2012 04:58 PM
So it working in build mode without errors but not in play mode(without any errors according to roblox's error GUI) is my flaw?

"So I assume you just want to announce that roblox has many flaws.
While it does indeed, in this scenario, your code was the one with flaws."

If I haven't posted the code, how do you know this time specifically it is my fault?
Report Abuse
HatHelper is not online. HatHelper
Top 25 Poster
Joined: 02 Mar 2009
Total Posts: 46305
08 Mar 2012 05:00 PM
Maybe it is my fault that it isn't working, but I'm not the only one to blame, for I made a working game in build. I'm not in charge of what roblox runs in play mode vs build mode.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
08 Mar 2012 05:05 PM
[ Content Deleted ]
Report Abuse
HatHelper is not online. HatHelper
Top 25 Poster
Joined: 02 Mar 2009
Total Posts: 46305
08 Mar 2012 05:06 PM
Infinite mining game, rescripting it for the fourth time.
Using _G for the chunks and for the already-created-parts.
Tool doesn't recognize the table apparently, I wouldn't know the error gui doesn't say anything.
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