--[[
	Function called when leaving the state
]]

function PlayerPreGameReady.onLeave(stateMachine, serverPlayer, event, from, to)
	local element = playerStatusBoard:FindFirstChild(serverPlayer.player.Name)

	if element then
		element:Destroy()
	end
end

return PlayerPreGameReady
