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

2 comments

0

Could you give the exact error?

0

attempt to index field 'Parent' (a nil value)