How do you change the position value and gyro to make an sliding door?
✓ ANSWER ACCEPTED
BodyPosition
1 answer
✓ Accepted answer
I would suggest using CFrame. this is posible with:
-- THIS IS FOR UP
for i=1,50 do
script.Parent.CFrame = script.Parent.CFrame + Vector3.new(0,0.1,0)
wait(0.02)
end
wait(3)
-- THIS IS FOR DOWN
for i=1,50 do
script.Parent.CFrame = script.Parent.CFrame - Vector3.new(0,0.1,0)
wait(0.02)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
