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: Weird output message...

Previous Thread :: Next Thread 
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
20 Feb 2013 04:25 PM
Here is the script:

wait(1)

local gamechildren = game:GetChildren()

local gui = script.Parent
local back = gui.Frame

for i,v in pairs (gamechildren) do
local label = Instance.new("TextLabel", back)
label.Size = UDim2.new(0.2, 0, 0.2, 0)
label.BackgroundTransparency = 1
label.BorderSizePixel = 0
label.Text = v.Name --Line 13
label.Position = UDim2.new(0.8, 0, i, 0)
end

And I keep getting:

17:24:59.205 - An error occurred
17:24:59.205 - Script "Players.Player1.PlayerGui.ScreenGui.LocalScript", Line 13
17:24:59.205 - stack end
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
20 Feb 2013 04:26 PM
local gamechildren = game:GetChildren()


is game a variable?
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
20 Feb 2013 04:32 PM
Anyways, this makes no sense, what are you trying to accomplish?
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
20 Feb 2013 05:07 PM
'game' is not a variable, and I am trying to make an online explorer Gui.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
20 Feb 2013 05:24 PM
Bump.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
20 Feb 2013 05:55 PM
bump2?
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
20 Feb 2013 06:00 PM
Please help, just throw out any idea you have, don't be afraid of getting it wrong...
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
20 Feb 2013 06:53 PM
Bump3...

Report Abuse
Th30racle is not online. Th30racle
Joined: 03 Nov 2012
Total Posts: 214
20 Feb 2013 06:57 PM
What are you trying to accomplish?

'for i'v in pairs (gamechildren)'

That line makes no sense at all, and the Gui isn't even placed in the StarterGui.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
20 Feb 2013 07:04 PM
First of all, the Gui is placed in StarterGui, I have no idea where that assumption that I didn't came from.

Second of all, how does that line make no sense? You respond so harshly, yet you yourself have no clue what you are talking about.

'local gamechildren = game:GetChildren()'

'for i,v in pairs (gamechildren) do'


Please, explain to me what makes no sense in this script.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
20 Feb 2013 07:05 PM
Also, you asked what I am trying to accomplish.

"'game' is not a variable, and I am trying to make an online explorer Gui."

Does that not clearly state what I am trying to accomplish here...
Report Abuse
Th30racle is not online. Th30racle
Joined: 03 Nov 2012
Total Posts: 214
20 Feb 2013 07:08 PM
Your script is so screwed up. You need to start over completely...
Report Abuse
GenerallyUnused is not online. GenerallyUnused
Joined: 18 Feb 2013
Total Posts: 20
20 Feb 2013 07:25 PM
The problem is that most of the children of Game are locked, so you can't access them. Meaning you can't get their names either.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
21 Feb 2013 06:47 AM
Mmk. Well I manually made all of the game's children, and I don't have to start over completely.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
21 Feb 2013 06:51 AM
Well I ran a simple script in the command bar to see what was a child of the game, and I got all of this:

Workspace
Run Service
Stats
ContentProvider
GuiRoot
GuiRoot
ContentFilter
Instance
GuiService
Chat
MarketplaceService
LoadingGui
LocalBackpack
StarterPack
StarterGui
CoreGui
Soundscape
JointsService
CollectionService
PhysicsService
BadgeService
Geometry
FriendService
RenderHooksService
InsertService
SocialService
GamePassService
Debris
Instance
Instance
CookiesService
Teleport Service
Instance
Players
Instance
Instance
ContextActionService
Instance
FilteredSelection
Selection
FilteredSelection
FilteredSelection
FilteredSelection
Instance
Script Context
ChangeHistoryService
Lighting
MeshContentProvider
TextureContentProvider
TextService
Visit
Instance

And I didn't want all of that, so thanks.
Interestingly, however, MarketPlaceService is in there :D
Report Abuse
H1998Backup is not online. H1998Backup
Joined: 19 Feb 2013
Total Posts: 138
21 Feb 2013 08:12 AM

Command bar can access more things than a normal script. For example:

workspace.Script.Source = "print('Hello World!')" can only be done in the command bar.
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