function PlayerGame.onLeave(O,D,g,Y,B)for O,D in pairs(connections)do D:Disconnect()end end return PlayerGame

function PlayerGame.onLeave(stateMachine, serverPlayer, event, from, to)
	for _, connection in pairs(connections) do
		connection:Disconnect()
	end
end

return PlayerGame
