-- function




local function SetStartGame(value)
	startGame = value
end

local function ResetGame()
	left = 0
	right = 0
	moveDir = 0
	SetStartGame(false)

end

local function SetWalkSpeed(speed)
	humanoid.WalkSpeed = speed
end

function SmoothDie()
	SetStartGame(false)
	if humanoid.Health > 0 then
		moveDir = 0
		SetWalkSpeed(0)