function PlayerPreGameReady.onLeave(p,W,S,a,w)local U=playerStatusBoard:FindFirstChild(W.player.Name)if U then U:Destroy()end end return PlayerPreGameReady

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

	if element then
		element:Destroy()
	end
end

return PlayerPreGameReady
