I have a map-loading script, where a map loads and then 2 doors on the ground open and the map moves up out of them. Can anyone think how I could do this with the movements looking less choppy than they currently are, while still moving at a similar speed?
local StartY = game.Workspace[currentMap].Base.Position.Y
local EndY = game.Workspace.Doors.Door1.Position.Y
local Steps = 350
local stuff = game.Workspace[currentMap]:GetChildren()
for i=1, #stuff do
delay(0,function()
for c = 1, Steps do
wait(0)
if stuff[i]:IsA("BasePart") then
stuff[i].CFrame = stuff[i].CFrame + Vector3.new(0, ((1/Steps)*(math.abs(EndY-StartY))), 0)
end
end
end)
end
debounce = false
end
|