HatHelper
|
  |
 |
| Joined: 02 Mar 2009 |
| Total Posts: 46305 |
|
|
| 08 Mar 2012 02:57 PM |
_G.Table = {}
Isn't working in play mode :/ |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
| |
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
HatHelper
|
  |
 |
| 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
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
HatHelper
|
  |
 |
| 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
|
  |
| 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
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
HatHelper
|
  |
 |
| 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
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
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 |
|
|
| |
|
HatHelper
|
  |
 |
| 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
|
  |
 |
| 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
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
HatHelper
|
  |
 |
| 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 |
|
|