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: StatsHud1 mystery?

Previous Thread :: Next Thread 
jacob2233 is not online. jacob2233
Joined: 23 Aug 2007
Total Posts: 723
22 Jul 2013 11:15 AM
Anyone ever notice the hidden object StatsHud1 in the Workspace? I recently noticed it, and I find it strange how StatsHud1 has two parents:

Command > gr = game.GuiRoot:getChildren()
Command > print(gr[1],gr[1].Parent)
StatsHud1 Workspace

You can list its children as well.

for i,v in ipairs(workspace.StatsHud1:getChildren()) do
print(v)
end


Because one of its parents is game.GuiRoot, it's the only "locked" object you can access via a script (unless you use the unlock properties bug).

I know it's the Stats menu that you can access in-game from a keyboard-shortcut, but does this mean you could also access its properties via a script while playing on a server?

Sorry I'm asking here, I couldn't find any information on the wiki about it, and find it interesting that you can access it via in-game script.
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
22 Jul 2013 11:20 AM
> print(game.GuiRoot:GetChildren()[1].Parent, game.GuiRoot:GetChildren()[1].Name)

GuiRoot StatsHud1

How did you produce the results you saw? I did this from the command line in a new place in studio.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
22 Jul 2013 11:31 AM
@stravant: http://www.roblox.com/Forum/ShowPost.aspx?PostID=106456025
Report Abuse
jacob2233 is not online. jacob2233
Joined: 23 Aug 2007
Total Posts: 723
22 Jul 2013 11:33 AM
I have no clue, my studio has been having all sorts of bugs, such as locked properties being unlocked to scripts, but when I restart the studio when it happens they are locked again.

I've been in the same place for the last few hours messing around with both command line and script arguments. I might have changed StatsHud1.Parent to workspace, but there is no command in the commands history that shows that, and it wouldn't explain why it has two parents.

Again, this is what my output is:
pic.twitter.com/LuBjaf2ifZ

I could try restarting my computer and seeing if the studio still has bugs, since it's apparent no one else has this issue; though I'm doubtful restarting my computer will fix anything at all.
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
22 Jul 2013 11:44 AM
What plugins to you have installed?
Report Abuse
jacob2233 is not online. jacob2233
Joined: 23 Aug 2007
Total Posts: 723
22 Jul 2013 11:45 AM
Exited Roblox studio for the first time in days, then re-ran it. It auto-installed the latest version, and now I don't experience bugs with locked properties. Is it possible that it happened because I had studio open for so long? Because it'd happen even if I closed a place and created a new blank one.
Report Abuse
jacob2233 is not online. jacob2233
Joined: 23 Aug 2007
Total Posts: 723
22 Jul 2013 12:01 PM
In short: Before closing the session after roughly 5 days, all locked properties were unlocked in Edit mode. After closing the session and the auto-update, all hidden properties are locked again in Edit mode.

Could the studio have glitched during the time I had it open, because I don't think it was a bug with that version of the studio?
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
22 Jul 2013 12:24 PM
Sounds like memory got corrupted somehow in an unlikely way.
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
22 Jul 2013 12:28 PM
That is the oddest memory corruption I have ever heard of then. It should of just crashed in most cases. The chances that a random object in memory got it's parent set internally to the hash of the workspace object without breaking anything is very high, nevermind sporadically changing identities.
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
22 Jul 2013 12:35 PM
"It should of just crashed in most cases"

That's why I say unlikely. It's probably not just random memory corruption, but infrequently run code messing up some edge case or something like that.
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
22 Jul 2013 12:42 PM
Actually, now that I think of it, I had some trouble with identities acting weirdly before too. I was running some magic in Lua and the level 4 Lua state wasn't separated or something, so an exploit worked - but only like 3 times, and not if I restarted Studio.
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