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

how do i make a door that goes up?

Asked by
luaa233 37
5 years ago

imade this door that like moves to another part, but it does it so fast that its not real and it doesnt look fluid enough to me to like.

local p = workspace.Part
local dr = workspace.Door
dr.Position = p.Position

how wuold i fix this...?

1 answer

Log in to vote
1
Answered by
KDarren12 705 Donator Moderation Voter
5 years ago
local p = workspace.Part
local dr = workspace.Door
for i = 1,20 do
dr.CFrame = dr.CFrame + Vector3.new(0,1,0)
wait(.3)
end
--should be fluid enough, just change the second value in the for loop to the Y plane of the part.
Ad

Answer this question