so basically the script only works if its on a "Part" it cant be multiple Parts, and Parts grouped together into a model
heres some more info
http://www.roblox.com/Forum/ShowPost.aspx?PostID=131237486
this is the script im using
function findIfClose(find) for i,v in ipairs(find:children()) do if v:findFirstChild("Humanoid")~=nil and v:findFirstChild("Torso")~=nil then if (v.Torso.Position - script.Parent.Main.Position).magnitude < 15 then return true end end end return false end
while true do wait() if findIfClose(game.Workspace) then for i=1,25 do wait(2) script.Parent.Right.CFrame = script.Parent.Right.CFrame + Vector3.new(1.25,0) script.Parent.Left.CFrame = script.Parent.Left.CFrame + Vector3.new(-1.25,0,0) end wait(1) for i=1,25 do wait(2) script.Parent.Right.CFrame = script.Parent.Right.CFrame + Vector3.new(-1.25,0,0) script.Parent.Left.CFrame = script.Parent.Left.CFrame + Vector3.new(1.25,0,0) end wait(1) end end
but it will not work if i use it on a model only a part
heres the model itself
http://www.roblox.com/Walls-Closing-In-item?id=151698331
just unanchor the wall and the other thingy you were talking about