I made this script in my game and its supposed to move a chunk of lava down and then teleport back up when the lava reaches the bottom
Lava Code:
local part = script.Parent
local bottom = workspace.bottom
wait(5)
while wait(0) do
part.Position -= Vector3.new(0,1,0)
end
function reset(part)
part.Position = Vector3.new(-100.412, 102.5, -8.321)
end
bottom.Touched:Connect(reset)