-- دالة السقوط

local function fall()
	local startPos = plank.Position
	local endPos = startPos - Vector3.new(0, fallHeight, 0)
	local startTime = tick()
	local elapsedTime = 0
	while elapsedTime <= fallingDuration do
		local t = elapsedTime / fallingDuration
		plank.Position = startPos:Lerp(endPos, t)
		wait()
		elapsedTime = tick() - startTime
	end
	plank.Position = originalPosition
end
