function PlayerPreGameReady.onLeave(x,e,P,S,j)local s=playerStatusBoard:FindFirstChild(e.player.Name)if s then s:Destroy()end end return PlayerPreGameReady
--[[
	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
