of     1   

Modoveex
#37223282Friday, November 19, 2010 5:03 PM GMT

I don't see what I did wrong, Mr Output says : Date - Players.Player.PlayerGui.Player:30: attempt to get length of local 'ThingsTouching' (a nil value) Date - Players.Player.PlayerGui.Player, line 30 stack end ____________________________________ local Player = script.Parent.MF2:clone() Player.Position = UDim2.new(0,100,0,0) Player.Parent = script.Parent.Bricks wait(5) function GetPosition(Pos) print("Start Search") local list = {} local c = script.Parent.Bricks:GetChildren() for i = 1, #c do -- O_O local X1 = c[i].Position.X.Offset local X2 = c[i].Position.X.Offset + c[i].Size.X.Offset if Pos.X.Offset X2 then return end local Z1 = c[i].Position.Z.Offset local Z2 = c[i].Position.Z.Offset + c[i].Size.Z.Offset if Pos.Z.Offset Z2 then return end print("Found "..c[i].Name) table.insert(list, c[i]) end print("Number found: "..#list) return list end while true do -- Fall local Height = Player.Position + UDim2.new(0,0,0,-20) local ThingsTouching = GetPosition(Height) if #ThingsTouching == 0 then Player.Position = Player.Position - UDim2.new(0,0,0,5) end wait() end
Modoveex
#37225555Friday, November 19, 2010 6:43 PM GMT

Bump
Modoveex
#37226364Friday, November 19, 2010 7:09 PM GMT

Bump?
Modoveex
#37233836Friday, November 19, 2010 10:01 PM GMT

Why doesn't anyone reply?
theblob5743
#37234045Friday, November 19, 2010 10:05 PM GMT

Try: if GetPosition(Height) == 0 then
Modoveex
#37325491Sunday, November 21, 2010 8:50 AM GMT

I don't think that that would work, Since GetPosition(Height) Should be a table with objects.

    of     1