So I have a script that works fine. It's like an elevator, and ill post it below. It moves the part upwards on the Y axis. But when the script activates, the part flips itself vertically and the player falls off. How do I fix this?
lift = script.Parent.Lift
game.Workspace.Ped1.Door.Sensor.Touched:Connect(function(hit)
local c = hit.Parent:FindFirstChild("Humanoid")
if c then
for i = 1,30 do
lift.CFrame = CFrame.new(lift.Position + Vector3.new(0,0.03,0))
end
end
end)
What the part does... https://gyazo.com/39aff9721d616f9327f5e3c625faee6d
What I want it to be orientated at... https://gyazo.com/5c1fa268f62de79024e95e1157e6ea43
Hopefully you can help me, Thanks!

7 comments
So I put in the script. It worked. But the player is still at the bottom. The part teleported. While the player stayed below.
So you want it to move the player? If so, you need to increase the both 30's, to lets say... 200. Then place a wait below line 8. I can update my answer if that helps?
Yea Im still very new to scripting. Please update if possible. Thanks for helping me
Now the part just disappears. Should I make a video and send a link to show you?
Uh sure, because it shouldn't disappear. Nothing changed but the amount of loops it does.
https://youtu.be/FOZS1boMAFQ
Try that