|
| 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
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 2760 |
|
|
| 20 Feb 2013 04:26 PM |
local gamechildren = game:GetChildren()
is game a variable? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 20 Feb 2013 05:07 PM |
| 'game' is not a variable, and I am trying to make an online explorer Gui. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 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 |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|