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: Issue-

Previous Thread :: Next Thread 
micke3212 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
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