Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does this attempt to index a nil value?

Asked by 9 years ago

I am trying to make a script, that get's every StringValue in game.ServerStorage.Testing, but every time I run the script it tell's me this error. attempt to index field 'Parent' (a nil value) Anyone have a idea on how I can fix it?

a = game.ServerStorage.Testing:GetChildren()

for v = 1,#a do     
    local t = script.Parent.Parent.Parent.Script.temp:Clone()
    t.Name = v.Name
    t.NameT.Text = v.Name
    t.Position = UDim2.new(0,10,0,(t*35))   
    t.Parent = script.Parent.Parent.Parent
end
0
Could you give the exact error? Goulstem 8144 — 9y
0
attempt to index field 'Parent' (a nil value) ISellCows 2 — 9y

Answer this question