i have a button that when i click 2 doors slide open but the doors are just moving to some place on their own and when i click the button they somewhat go to the place i want them to.
local dr = workspace.dr local drr = workspace.drr local fin = workspace.fin local ish = workspace.ish local st = workspace.st local art = workspace.art local function doormove(onClick) dr.BodyPosition.position = Vector3.new(43.153, 10.05, -99.303) drr.BodyPosition.position = Vector3.new(5.676, 10.05, -136.78) wait(10) dr.BodyPosition.position = Vector3.new(18.404, 10.05, -124.052) drr.BodyPosition.position = Vector3.new(30.461, 10.05, -111.996) end script.Parent.ClickDetector.MouseClick:connect(doormove)
i used that one after this
local dr = workspace.dr local drr = workspace.drr local fin = workspace.fin local ish = workspace.ish local st = workspace.st local art = workspace.art local function doormove(onClick) dr.BodyPosition.position = fin.Position drr.BodyPosition.position = ish.Position wait(10) dr.BodyPosition.position = st.Position drr.BodyPosition.position = art.Position end script.Parent.ClickDetector.MouseClick:connect(doormove)