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

I need help with this script and/model?

Asked by 10 years ago

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

1 answer

Log in to vote
-1
Answered by 10 years ago

just unanchor the wall and the other thingy you were talking about

0
that doesnt work, please take the model to make sure it works, and try some different things cause its not working for me, i think i need to weld or wield but idk how kevinc99 0 — 10y
0
ok danielsarabia11 -2 — 10y
Ad

Answer this question