of     1   

cheesecake123456
#183455044Friday, February 12, 2016 10:16 PM GMT

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
DrHaximus
#183455127Friday, February 12, 2016 10:17 PM GMT

use renderstepped you're not getting all the frames you could be
cheesecake123456
#183455815Friday, February 12, 2016 10:26 PM GMT

Would it be necessary to use BindToRenderStepped too?
cheesecake123456
#183468079Saturday, February 13, 2016 12:49 AM GMT

b1
myactivetestplace
#183469094Saturday, February 13, 2016 1:02 AM GMT

do you mean rotating them?
cheesecake123456
#183469959Saturday, February 13, 2016 1:13 AM GMT

No, raising an obstacle course(just on the y axis) for example. All the parts move, but on larger maps it looks choppy.
myactivetestplace
#183470838Saturday, February 13, 2016 1:26 AM GMT

local model = workspace.(modelname) for i = 1,5 do wait(1) model:TranslateBy(Vector3.new(0,1,0)) end
cheesecake123456
#183496751Saturday, February 13, 2016 11:52 AM GMT

Thanks a lot, works perfectly!
cheesecake123456
#183496999Saturday, February 13, 2016 12:00 PM GMT

Could anyone give an example of RenderStepped? The wiki has none and this doesn't work: for i = 1, Steps do game:GetService('RunService'):RenderStepped() workspace[currentMap]:TranslateBy(Vector3.new(0, -((1/Steps)*(math.abs(EndY - StartY))), 0)) end
cheesecake123456
#183497298Saturday, February 13, 2016 12:11 PM GMT

Nvm, figured it out: for i = 1, Steps do game:GetService('RunService').RenderStepped:wait() workspace[currentMap]:TranslateBy(Vector3.new(0, -((1/Steps)*(math.abs(EndY - StartY))), 0)) end

    of     1