micke3212
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 3000 |
|
|
| 24 May 2014 12:52 AM |
scroll = script.Parent.ScrollingFrame1 txt = script:FindFirstChild("TextButton1") top = script.Parent.Top.Frame.Box t = txt:clone() function resize() local size = 0 for i,v in pairs(scroll:GetChildren()) do size = size+30 end scroll.CanvasSize = UDim2.new(0,0,0,size) end function create() local num = 0 scroll:ClearAllChildren() for i,v in pairs(game.Workspace.Archive:GetChildren()) do if script.Parent.Top.Frame.Box.Text ~= "" then if v.Name:lower() == script.Parent.Top.Frame.Box.Text:lower() then t.Parent = scroll t.Position = UDim2.new(0,0, 0, num) num = num+30 t.Name = v.Name t:FindFirstChild("TextLabel1").Text = "[Name: "..v.Name.."]:[OP["..v.op.Value.."] BP["..v.bp.Value.."]]:[ID:"..v.id.Value.."]]" end elseif script.Parent.Top.Frame.Box.Text == "" then t.Parent = scroll t.Position = UDim2.new(0,0, 0, num) num = num+30 t.Name = v.Name t:FindFirstChild("TextLabel1").Text = "[Name: "..v.Name.."]:[OP["..v.op.Value.."] BP["..v.bp.Value.."]]:[ID:"..v.id.Value.."]]" end end resize() end top.InputBegan:connect(function() create() end) top.InputChanged:connect(function() create() end) top.InputEnded:connect(function() create() end) while wait(2) do create() end
It states line 29, attempt to find a nil value(TextLabel1), well I know it's there and this script is a script located in a GUI with a bunch of frames and inside the script is my TextButton, so... I have no clue whats wrong... Help? |
|
|
| Report Abuse |
|
|
dekkonot
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 24 May 2014 12:56 AM |
What is line 29?
~ Non simpliciter Latinam legere ~ |
|
|
| Report Abuse |
|
|
micke3212
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 3000 |
|
|
| 24 May 2014 12:57 AM |
:FindFirstChild("TextLabel1").Text = ""
There are two of them however it states the textlabel is missing, but I don't understand as when I clone the TextButton the TextLabel is located directly inside... |
|
|
| Report Abuse |
|
|
dekkonot
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 24 May 2014 01:01 AM |
Are you certain it's being named TextLabel1?
~ Non simpliciter Latinam legere ~ |
|
|
| Report Abuse |
|
|
micke3212
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 3000 |
|
|
| 24 May 2014 01:02 AM |
| Yup, 100%, actually if you follow me I'll even show you the place and let you check the logs... |
|
|
| Report Abuse |
|
|
dekkonot
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 24 May 2014 01:13 AM |
It didn't seem to error for me...?
~ Non simpliciter Latinam legere ~ |
|
|
| Report Abuse |
|
|
micke3212
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 3000 |
|
|
| 24 May 2014 01:16 AM |
| Fixed, seems that since I had the clone before the for, it didn't work for each individual thing located in Archive in workspace... Silly me... |
|
|
| Report Abuse |
|
|