|
| 26 Jan 2012 08:52 PM |
19:50:20 - attempt to call a nil value 19:50:20 - Disconnected event because of exception
WHERE DID IT ERROR T.T
-{ 3rd Year as 18cwatford, may as well be OnlyChild when I can -_- }- |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2012 08:56 PM |
You are trying to index something that doesn't exist
Do you have the whole script? |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2012 08:57 PM |
Obv not.
-{ 3rd Year as 18cwatford, may as well be OnlyChild when I can -_- }- |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2012 08:59 PM |
Order I have stuff in: |StarterGui |-|ScreenGui |-|-|Frame |-|-|-|TextButton |-|-|-|-|Script |-|-|This Works :P -- A Frame.
Script: open = false position = 0.1
function onClicked(mouse) if open == false then for _,v in piars(script.Parent.Parent.Parent:getChildren()) do if v:IsA("Frame") then if v.Name ~= script.Parent.Parent.Name then l = Instance.new("TextButton", script.Parent.Parent) l.Position = UDim2.new(0.4, 0, position, 0) position = position + position -- Inseption? Lolol l.Size = script.Parent.Size l.Name = v l.Text = v l.BackgroundColor3 = Color3.new(28/255, 28/255, 28/255) l.BorderSizePixel = 0 end end end open = true elseif open == true then for _,v in paris(script.Parent.Parent:getChildren()) do if v ~= script.Parent then if v:IsA("TextButton") then v:Destroy() position = 0.1 end end end open = false end end
script.Parent.MouseButton1Down:connect(onClick)
You tell me whats nil.
-{ 3rd Year as 18cwatford, may as well be OnlyChild when I can -_- }- |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2012 09:04 PM |
| What, nobody likes scripting helpers anymore D: |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2012 09:05 PM |
Did it say what was nil? And "position = position + position -- Inseption? Lolol" o.o
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2012 09:07 PM |
It didnt say ANYTHING was nil T.T if it did, why would I post? "position = position + position" that just adds it to itself, just multiplying cause i want it that way XD |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jan 2012 09:13 PM |
open = false position = 0.1
function onClicked(mouse) if open == false then for _,v in piars(script.Parent.Parent.Parent:getChildren()) do if v:IsA("Frame") then if v.Name ~= script.Parent.Parent.Name then l = Instance.new("TextButton", script.Parent.Parent) l.Position = UDim2.new(0.4, 0, position, 0) position = position + 0.1 -- Inseption? Lolol l.Size = script.Parent.Size l.Name = v l.Text = v l.BackgroundColor3 = Color3.new(28/255, 28/255, 28/255) l.BorderSizePixel = 0 end end end open = true elseif open == true then for _,v in paris(script.Parent.Parent:getChildren()) do if v ~= script.Parent then if v:IsA("TextButton") then v:Destroy() position = 0.1 end end end open = false end end
script.Parent.MouseButton1Down:connect(onClick)
-- Knight wanted it... |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2012 09:14 PM |
In pairs man, in pairs.
† KMXD † |
|
|
| Report Abuse |
|
|