lol, varez will be mad, but ill try
local x,y,z,object= --offsets and object here
function moveUp()
setTimer(function()
z=z+0.2
setElementAttachedOffsets(object,x,y,z)
end,200,40)
setTimer(moveDown,8000,1)
end
function moveDown()
setTimer(function()
z=z-0.2
setElementAttachedOffsets(object,x,y,z)
end,200,40)
setTimer(moveUp,8000,1)
end
just call one of the functions to start the move